kopia lustrzana https://github.com/villares/sketch-a-day
97 readme & gif
rodzic
0f1743cdf3
commit
1197e19dad
|
|
@ -8,6 +8,12 @@ If you enjoy this, make a small donation [here](https://www.paypal.com/cgi-bin/w
|
|||
|
||||
----
|
||||
|
||||

|
||||
|
||||
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)]
|
||||
|
||||
----
|
||||
|
||||

|
||||
|
||||
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)]
|
||||
|
|
|
|||
Plik binarny nie jest wyświetlany.
|
Po Szerokość: | Wysokość: | Rozmiar: 960 KiB |
|
|
@ -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):
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue