Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

lissajous draw

lissajous python

This topic has been archived. This means that you cannot reply to this topic.
No replies to this topic

#1 Dampf

Dampf

    CC Lurker

  • New Member
  • Pip
  • 5 posts

Posted 05 June 2015 - 11:13 PM

I must make lissajous in python but i dont understand how i maust make while True function to print this out:
512px--Simple_Lissajous_Animation.ogv.jp

My started code is here:
from graphics import *
import math

spriaal = GraphWin("Joonistus", 1000, 1000)

a=5
b=4

while True:
	x = math.sin(a+math.pi()/2)
	y = math.sin()
	
	pt = Point(x+500, y+500)
	pt.draw(spriaal)

But Nummpy not allowed for my code, beacause teacher says, thats so easy. And sorry for my bad english.