From 5a4a7ebd2cc4c496b0afe09ca74bb51d37792756 Mon Sep 17 00:00:00 2001 From: Alexandre B A Villares Date: Fri, 30 Mar 2018 11:58:40 -0300 Subject: [PATCH] rectMode() comment --- s088/s088.pyde | 2 ++ s089/s089.pyde | 13 ++++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/s088/s088.pyde b/s088/s088.pyde index b16b4db3..75289fa9 100644 --- a/s088/s088.pyde +++ b/s088/s088.pyde @@ -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) diff --git a/s089/s089.pyde b/s089/s089.pyde index 7a75c6b9..62eb8166 100644 --- a/s089/s089.pyde +++ b/s089/s089.pyde @@ -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()