| 
		 Po Szerokość: | Wysokość: | Rozmiar: 3.6 KiB  | 
| 
		 Po Szerokość: | Wysokość: | Rozmiar: 3.7 KiB  | 
| 
		 Po Szerokość: | Wysokość: | Rozmiar: 3.6 KiB  | 
| 
		 Po Szerokość: | Wysokość: | Rozmiar: 3.6 KiB  | 
| 
		 Po Szerokość: | Wysokość: | Rozmiar: 3.6 KiB  | 
| 
		 Po Szerokość: | Wysokość: | Rozmiar: 3.6 KiB  | 
| 
		 Po Szerokość: | Wysokość: | Rozmiar: 3.6 KiB  | 
| 
		 Po Szerokość: | Wysokość: | Rozmiar: 3.5 KiB  | 
| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
    size(400, 400)
 | 
			
		||||
| 
						 | 
				
			
			@ -1,46 +0,0 @@
 | 
			
		|||
"""
 | 
			
		||||
"Based on traditional Japanese stitching,
 | 
			
		||||
this is a riff on hitomezashi patterns." Annie Perikins @anniek_p
 | 
			
		||||
https://twitter.com/anniek_p/status/1244220881347502080?s=20
 | 
			
		||||
"""
 | 
			
		||||
 | 
			
		||||
tam = 10
 | 
			
		||||
grid = dict()
 | 
			
		||||
 | 
			
		||||
def setup():
 | 
			
		||||
    size(400, 400)
 | 
			
		||||
    cols, rows =  width / tam, height / tam
 | 
			
		||||
    for x in range(cols):
 | 
			
		||||
        for y in range(rows):
 | 
			
		||||
            grid[(x, y)] = False
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
def draw():
 | 
			
		||||
    background(200)
 | 
			
		||||
    w, h = 10, 10
 | 
			
		||||
    limite_x = frameCount
 | 
			
		||||
    for x in range(0, width, w):
 | 
			
		||||
        dashed_line(x, 0, x, height)
 | 
			
		||||
    for y in range(0, height, w):
 | 
			
		||||
        dashed_line(0, y, width, y)
 | 
			
		||||
    noLoop()
 | 
			
		||||
 | 
			
		||||
def dashed_line(ax, ay, bx, by, partial=None steps=None):
 | 
			
		||||
    # line(ax, ay, bx, by)
 | 
			
		||||
    if steps is None:
 | 
			
		||||
        steps = width / 10 # lenght
 | 
			
		||||
    if partial is None:
 | 
			
		||||
        partial = steps
 | 
			
		||||
    r = int(random(2))
 | 
			
		||||
    lx, ly = ax, ay
 | 
			
		||||
    for i in range(1, steps + 1):
 | 
			
		||||
        x = lerp(ax, bx, i / float(steps))
 | 
			
		||||
        y = lerp(ay, by, i / float(steps))
 | 
			
		||||
        if i % 2 == r:
 | 
			
		||||
        # circle(x, y, 5)
 | 
			
		||||
           line(lx, ly, x, y)
 | 
			
		||||
        lx, ly = x, y
 | 
			
		||||
 | 
			
		||||
def keyReleased():
 | 
			
		||||
    loop()
 | 
			
		||||
    saveFrame("####.png")
 | 
			
		||||