kopia lustrzana https://github.com/villares/sketch-a-day
readme & cleanup
rodzic
57547eff78
commit
25cc49e839
|
@ -1,17 +1,14 @@
|
|||
|
||||
|
||||
ox, oy = 0, 0
|
||||
|
||||
def setup():
|
||||
size(512, 512)
|
||||
noLoop()
|
||||
rectMode(CENTER)
|
||||
|
||||
def draw():background(-1);r(256, 256, 2, 512)
|
||||
def draw():
|
||||
background(255)
|
||||
r(256, 256, 2, 512)
|
||||
|
||||
def r(x, y, n, tw):
|
||||
ox, oy = 0, 0
|
||||
# global ox, oy
|
||||
cw = tw / n
|
||||
m = (cw - tw) / 2
|
||||
for i in range(n):
|
||||
|
@ -29,8 +26,3 @@ def r(x, y, n, tw):
|
|||
def keyPressed():
|
||||
saveFrame("####.png")
|
||||
redraw()
|
||||
global ox, oy
|
||||
ox, oy = 0 , 0
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -18,6 +18,12 @@ You may also support my artistic work, open teaching resources and research with
|
|||
|
||||
## 2019
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
[sketch_190915b](https://github.com/villares/sketch-a-day/tree/master/2019/sketch_190915b) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue