1 | from pypen import * |
||
2 | |||
3 | |||
4 | def start(): |
||
5 | settings.fps = 60 |
||
6 | |||
7 | def update(): |
||
8 | save() |
||
9 | translate(WIDTH/2, HEIGHT/2) |
||
10 | |||
11 | x1 = 200 * cos(TIME - 10 * sin(TIME)) * cos(TIME) |
||
12 | y1 = 200 * sin(TIME - FRAME/10) * sin(TIME) |
||
13 | |||
14 | x2 = 200 * cos(TIME + FRAME ** 0.5) * cos(TIME-0.5) |
||
15 | y2 = 200 * sin(TIME + FRAME/10 - 10*cos(TIME/10)) * sin(TIME - 0.5) |
||
16 | |||
17 | line(x1, y1, x2, y2, (150, 30, 230, 10), 0.2) |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
Loading history...
|
|||
18 | |||
19 | restore() |
||
20 |