[Tutor PyCZ] (no subject)
Stefan Oravec
stefan.oravec na realtime.sk
Středa Květen 31 07:50:27 CEST 2006
Quoting xDlabacekM at seznam.cz:
> Kompletní verze je taková:
>
> from livewires import *
> import time
> import math
> import random
>
> begin_graphics()
> set_colour(Colour.yellow)
> circle(320,240,30, filled=1)
>
> x=1
> y=1
> for q in range(100):
> pru=random.randint(2,10)
> uhel=random.randint(1,359)
> set_colour(Colour.red)
> allow_moveables()
> c=circle(x,y,pru, filled=1)
> vz=random.randint(50,300)
> obj=[]
>
> pla=[uhel, pru, vz]
sin(x)
Return the sine of x radians.
^^^^^^^
takze nasledujuce 2 riadky sa nebudu chovat tak ako by si chcel
> x=320+pla[2]*math.cos(pla[0])
> y=240+pla[2]*math.sin(pla[0])
btw uz sme to tu raz riesili a myslim ze si to bol ty (thread Kruhový
pohyb) :) navrhujem zopakovat/nastudovat si goniometricke fcie.
S.
Další informace o konferenci Tutor