kopia lustrzana https://github.com/villares/sketch-a-day
Update s297/s297.pyde
rodzic
c9d650b965
commit
b883f2bce1
|
@ -2,8 +2,8 @@
|
|||
SKETCH_NAME = "s297" # 20181022
|
||||
OUTPUT = ".gif"
|
||||
|
||||
add_library('gifAnimation')
|
||||
from gif_exporter import gif_export
|
||||
# add_library('gifAnimation')
|
||||
# from gif_exporter import gif_export
|
||||
|
||||
NUM = 10
|
||||
BORDER = 50
|
||||
|
@ -55,11 +55,9 @@ def draw():
|
|||
for p1, p2 in edges(poly):
|
||||
line(p1.x, p1.y, p2.x, p2.y)
|
||||
|
||||
if 40 > SPACING > 10:
|
||||
gif_export(GifMaker, SKETCH_NAME, frames=40)
|
||||
# gif_export(GifMaker, SKETCH_NAME, frames=40)
|
||||
|
||||
|
||||
|
||||
def is_inside(x, y, poly_points):
|
||||
min_, max_ = min_max(poly_points)
|
||||
if x < min_.x or y < min_.y or x > max_.x or y > max_.y:
|
||||
|
|
Ładowanie…
Reference in New Issue