kopia lustrzana https://github.com/villares/sketch-a-day
fixing comments
rodzic
0cd3524970
commit
1ef8b2c9cc
|
@ -9,7 +9,7 @@ from slider import Slider
|
|||
i = Slider(PI / 6, TWO_PI / 3, QUARTER_PI) # angle, changes number of sides
|
||||
j = Slider(1, 4, 2) # depth, changes number of recursions (fiddled afterwards)
|
||||
k = Slider(10, 50, 25) # offset, changes scale
|
||||
l = Slider(0, TWO_PI, 0) # offset, changes scale
|
||||
l = Slider(0, TWO_PI, 0) # rotation
|
||||
|
||||
I, J, K, L = 1, 1, 1, 1 # dummy initial slider global values
|
||||
# ^ I need these globals because I want to read/draw sliders
|
||||
|
@ -62,4 +62,4 @@ def poly_shape(x, y, angle, D, offset, rotation):
|
|||
# for each vertex
|
||||
pv = ps.getVertex(i) # gets vertex as a PVector
|
||||
# recusively call poly_shape with a smaller D
|
||||
poly_shape(pv.x, pv.y, angle, D - 1, offset, rotation)
|
||||
poly_shape(pv.x, pv.y, angle, D - 1, offset, rotation)
|
Ładowanie…
Reference in New Issue