kopia lustrzana https://github.com/villares/sketch-a-day
fixing readme 177 178 180
rodzic
32907b8257
commit
69b188bce0
57
README.md
57
README.md
|
@ -6,33 +6,76 @@ 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)
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
185: [code](https://github.com/villares/sketch-a-day/tree/master/s185) [[Processing Java](https://www.processing.org)]
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
184: [code](https://github.com/villares/sketch-a-day/tree/master/s184) [[Processing Java](https://www.processing.org)]
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
183: [code](https://github.com/villares/sketch-a-day/tree/master/s183)
|
||||
183: [code](https://github.com/villares/sketch-a-day/tree/master/s183) [[Processing Java](https://www.processing.org)]
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
182: [code](https://github.com/villares/sketch-a-day/tree/master/s182)
|
||||
182: [code](https://github.com/villares/sketch-a-day/tree/master/s182) [[Processing Java](https://www.processing.org)]
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
||||
183: [code](https://github.com/villares/sketch-a-day/tree/master/s181)
|
||||
181: [code](https://github.com/villares/sketch-a-day/tree/master/s181) [[Processing Java](https://www.processing.org)]
|
||||
|
||||
---
|
||||
|
||||
178, 179, 180
|
||||

|
||||
```
|
||||
def set_nbs(self):
|
||||
self.nbs, self.unvisited_nbs = [], []
|
||||
for node in Node.nodes:
|
||||
if node != self and dist(node.x, node.y, node.z,
|
||||
self.x, self.y, self.z) <= Node.spacing * 1.1:
|
||||
self.nbs.append(node)
|
||||
self.unvisited_nbs.append(node)
|
||||
```
|
||||

|
||||
|
||||
I have to add images here... the code is there, look at the repositóry...
|
||||
```
|
||||
if node != self and dist(node.x, node.y, node.z,
|
||||
self.x, self.y, self.z) <= Node.spacing * 1.5:
|
||||
```
|
||||
|
||||
180: [code](https://github.com/villares/sketch-a-day/tree/master/s180) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]
|
||||
|
||||
---
|
||||
|
||||

|
||||

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

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

|
||||
|
||||
177: [code](https://github.com/villares/sketch-a-day/tree/master/s177) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]
|
||||
|
||||
---
|
||||
|
@ -463,7 +506,7 @@ To be brutally honest, I had no idea that reversing the second random grid would
|
|||
|
||||
Hexagons!
|
||||
|
||||
```python
|
||||
```python
|
||||
def hexagon(x, y, r):
|
||||
with pushMatrix():
|
||||
translate(x, y)
|
||||
|
@ -483,7 +526,7 @@ def hexagon(x, y, r):
|
|||
|
||||
Now I 'fixed' the rotation with propper pushMatrix() and translate()
|
||||
|
||||
```python
|
||||
```python
|
||||
with pushMatrix():
|
||||
translate(x0,y0)
|
||||
rotate(fs0)
|
||||
|
|
Plik binarny nie jest wyświetlany.
Po Szerokość: | Wysokość: | Rozmiar: 79 KiB |
|
@ -2,8 +2,6 @@
|
|||
# s177 180624
|
||||
|
||||
from random import choice
|
||||
from gif_export_wrapper import *
|
||||
add_library('gifAnimation')
|
||||
|
||||
GRID_SIZE = 40
|
||||
SKETCH_NAME = "s177"
|
||||
|
|
Plik binarny nie jest wyświetlany.
Po Szerokość: | Wysokość: | Rozmiar: 165 KiB |
Plik binarny nie jest wyświetlany.
Po Szerokość: | Wysokość: | Rozmiar: 186 KiB |
Plik binarny nie jest wyświetlany.
Po Szerokość: | Wysokość: | Rozmiar: 202 KiB |
Ładowanie…
Reference in New Issue