rectMode() comment

main
Alexandre B A Villares 2018-03-30 11:58:40 -03:00
rodzic 3516964404
commit 5a4a7ebd2c
2 zmienionych plików z 10 dodań i 5 usunięć

Wyświetl plik

@ -18,6 +18,8 @@ SHAPES = [my_ellipse,
def setup():
size(600, 600, P2D)
rectMode(CENTER)
A.position(40, height - 70)
B.position(40, height - 30)
C.position(width - 140, height - 70)

Wyświetl plik

@ -18,6 +18,9 @@ SHAPES = [circle,
def setup():
size(600, 600, P2D)
# rectMode(CENTER) # forgot this and it dislocates losangs :(
# but now I've left like this for this one :)
A.position(40, height - 70)
B.position(40, height - 30)
C.position(width - 140, height - 70)
@ -45,11 +48,11 @@ def draw():
rnd_choice(SHAPES)) # random shape drawing function
# uncomment next lines to export GIF
if not frameCount % 30:
gif_export(GifMaker,
frames=2000,
delay=500,
filename=SKETCH_NAME)
# if not frameCount % 30:
# gif_export(GifMaker,
# frames=2000,
# delay=500,
# filename=SKETCH_NAME)
# Draws sliders and checks for mouse dragging or keystrokes
Slider.update_all()