You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So i've been trying to recreate The Coding Train's Double Pendulum project in p5py. So I've drawn a single frame of the pendulum but when I just dumbly update the angle between of the pendulum, the screen is black when run it. Am i just being dumb or something?
So i've been trying to recreate The Coding Train's Double Pendulum project in p5py. So I've drawn a single frame of the pendulum but when I just dumbly update the angle between of the pendulum, the screen is black when run it. Am i just being dumb or something?
here's my code:
from p5 import *
r1 = 100
r2 = 100
m1 = 10
m2 = 10
angle1 = PI/2
angle2 = 0
def setup():
size(800, 800)
title('Double Pendulum - Coding Train')
def draw():
stroke(0)
background(255)
stroke_weight(2)
if name == "main":
run()
The text was updated successfully, but these errors were encountered: