kopia lustrzana https://github.com/villares/sketch-a-day
main
rodzic
9a1ae4a4af
commit
dea6689283
20
README.md
20
README.md
|
@ -7,6 +7,26 @@ Hi! I'm [Alexandre Villares](https://abav.lugaralgum.com), let's see if I can ma
|
|||
If you enjoy this, make a small donation [here](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HCGAKACDMVNV2) or with [Patreon](https://patreon.com/arteprog)
|
||||
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
208: [code](https://github.com/villares/sketch-a-day/tree/master/s208) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]
|
||||
|
||||
---
|
||||
|
||||
|
||||

|
||||
|
||||
207: [code](https://github.com/villares/sketch-a-day/tree/master/s207) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]
|
||||
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
206: [code](https://github.com/villares/sketch-a-day/tree/master/s206) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]
|
||||
|
||||
---
|
||||
|
||||
|
||||
|
|
Plik binarny nie jest wyświetlany.
Po Szerokość: | Wysokość: | Rozmiar: 132 KiB |
|
@ -6,7 +6,7 @@ add_library('gifAnimation')
|
|||
add_library('peasycam')
|
||||
|
||||
GRID_SIZE = 11
|
||||
SKETCH_NAME = "s207"
|
||||
SKETCH_NAME = "s208"
|
||||
OUTPUT = ".png"
|
||||
color_mode = True
|
||||
starting_node = 0
|
||||
|
@ -16,7 +16,7 @@ def setup():
|
|||
lights()
|
||||
size(700, 700, P3D)
|
||||
cam = PeasyCam(this, 100)
|
||||
cam.setMinimumDistance(500)
|
||||
cam.setMinimumDistance(1000)
|
||||
cam.setMaximumDistance(1000)
|
||||
#colorMode(HSB)
|
||||
strokeWeight(2)
|
||||
|
@ -25,7 +25,7 @@ def setup():
|
|||
Node.spacing = (width - Node.border * 2) / GRID_SIZE
|
||||
for x in range(GRID_SIZE):
|
||||
for y in range(GRID_SIZE):
|
||||
for z in range(1):
|
||||
for z in range(GRID_SIZE):
|
||||
Node.nodes.append(Node(x, y, z))
|
||||
Node.rooms = [node for node in Node.nodes
|
||||
if node.ix % 2 == 1 and
|
||||
|
@ -66,7 +66,6 @@ def clear_grid():
|
|||
node.visited = False
|
||||
node.current = False
|
||||
node.links = []
|
||||
node.cor = None
|
||||
Node.nodes[starting_node].current = True
|
||||
else:
|
||||
gif_export(GifMaker, finish=True)
|
||||
|
@ -86,7 +85,7 @@ class Node():
|
|||
self.visited = False
|
||||
self.current = False
|
||||
self.links = []
|
||||
self.cor = 255
|
||||
self.cor = color(255)
|
||||
self.nbs = []
|
||||
|
||||
def plot(self):
|
||||
|
@ -116,7 +115,7 @@ class Node():
|
|||
# self.ix == node.ix + 1 or
|
||||
# self.iy == node.iy - 1 or
|
||||
# self.iy == node.iy + 1):
|
||||
self.cor = color(255, 0, 0)
|
||||
node.cor = color(255, 0, 0)
|
||||
self.nbs.append(node)
|
||||
self.unvisited_nbs.append(node)
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue