diff --git a/README.md b/README.md index 5608614b..b837927a 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,12 @@ If you enjoy this, make a small donation [here](https://www.paypal.com/cgi-bin/w ---- +![s097](s097/s097.gif) + +097: [code](https://github.com/villares/sketch-a-day/tree/master/s097) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)] + +---- + ![s096](s096/s096.gif) 096: [code](https://github.com/villares/sketch-a-day/tree/master/s096) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)] diff --git a/s097/s097.gif b/s097/s097.gif new file mode 100644 index 00000000..1994bb37 Binary files /dev/null and b/s097/s097.gif differ diff --git a/s097/s097.pyde b/s097/s097.pyde index f8c2f27e..0d8e9930 100644 --- a/s097/s097.pyde +++ b/s097/s097.pyde @@ -1,5 +1,5 @@ # Alexandre B A Villares - https://abav.lugaralgum.com/sketch-a-day -SKETCH_NAME = "s096" # 180406 +SKETCH_NAME = "s097" # 180407 add_library('serial') # import processing.serial.*; add_library('arduino') # import cc.arduino.*; @@ -19,17 +19,18 @@ def setup(): def draw(): background(200) rectMode(CENTER) - #stroke(0) - noStroke() - #strokeWeight(2) - fill(255, 100) + stroke(0) + #noStroke() + strokeWeight(2) + #fill(255, 100) + noFill() grid_elem = int(input.analog(1) / 16) # 0 to 64 elem_size = int(input.analog(2) / 16) # 0 to 64 rand_size = int(input.analog(3) / 16) # 0 to 64 rand_posi = int(input.analog(4) / 16) # 0 to 64 #print(grid_size, elem_size, spac_size, rand_range) - randomSeed(int(input.analog(1))) + randomSeed(int(input.analog(1))/4) spac_size = int(width / (grid_elem + 1)) for x in range(spac_size / 2, width , spac_size): for y in range(spac_size / 2, width , spac_size):