kopia lustrzana https://github.com/villares/sketch-a-day
27a_readme
rodzic
34e6fc01ab
commit
e01ea54333
|
|
@ -34,9 +34,9 @@ def setup():
|
|||
line_combos = list(combinations(short_lines, 4))
|
||||
# shuffle(line_combos) # ucomment to shuffle!
|
||||
num = len(line_combos)
|
||||
println(num)
|
||||
println("Number of combinations: {}".format(num))
|
||||
W, H = (width - space) / space, (height - space) / space
|
||||
println((W, H, W * H))
|
||||
println("Cols: {} Lines: {} Visible grid: {}".format(W, H, W * H))
|
||||
|
||||
|
||||
def draw():
|
||||
|
|
@ -57,7 +57,6 @@ def draw():
|
|||
position += W
|
||||
|
||||
def draw_combo(combo_n):
|
||||
colorMode(RGB)
|
||||
siz = space / 2.
|
||||
for stroke_n, stroke_line in enumerate(line_combos[combo_n]):
|
||||
colorMode(HSB)
|
||||
|
|
|
|||
Plik binarny nie jest wyświetlany.
|
Po Szerokość: | Wysokość: | Rozmiar: 480 KiB |
Plik binarny nie jest wyświetlany.
|
Po Szerokość: | Wysokość: | Rozmiar: 316 KiB |
Plik binarny nie jest wyświetlany.
|
Po Szerokość: | Wysokość: | Rozmiar: 533 KiB |
Plik binarny nie jest wyświetlany.
|
Po Szerokość: | Wysokość: | Rozmiar: 375 KiB |
Plik binarny nie jest wyświetlany.
|
Po Szerokość: | Wysokość: | Rozmiar: 888 KiB |
Plik binarny nie jest wyświetlany.
|
Po Szerokość: | Wysokość: | Rozmiar: 499 KiB |
|
|
@ -3,8 +3,8 @@
|
|||
|
||||
from random import shuffle
|
||||
from itertools import product, combinations, permutations, combinations_with_replacement
|
||||
from gif_exporter import gif_export
|
||||
add_library('GifAnimation')
|
||||
# from gif_exporter import gif_export
|
||||
# add_library('GifAnimation')
|
||||
|
||||
space = 10
|
||||
position = 0 # initial position
|
||||
|
|
@ -73,9 +73,9 @@ def draw_combo(combo_n):
|
|||
def keyPressed():
|
||||
global mode
|
||||
if key == "s":
|
||||
saveFrame("####.png")
|
||||
if key == "g":
|
||||
gif_export(GifMaker, SKETCH_NAME, delay=1200)
|
||||
saveFrame("mode-"+str(mode)+"-##.png")
|
||||
# if key == "g":
|
||||
# gif_export(GifMaker, SKETCH_NAME, delay=1200)
|
||||
if key == "m":
|
||||
mode = (mode + 1) % 3
|
||||
if key == "r":
|
||||
|
|
|
|||
14
README.md
14
README.md
|
|
@ -28,10 +28,10 @@ Get updates from my sort-of-weekly newsletter: [[sketch-mail](https://villares.o
|
|||
|
||||
[sketch_190527a](https://github.com/villares/sketch-a-day/tree/master/2019/sketch_190527a) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]
|
||||
|
||||
Variations: isolated/merged color/b&w ordered/shuffled
|
||||
Number of possible long lines on 4x4 grid: 22
|
||||
Number of combinations: 7315
|
||||
Cols: 133 Lines: 55 Visible grid: 7315
|
||||
- Number of possible long lines on 4x4 grid: 22
|
||||
- Number of combinations: 7315
|
||||
- Cols: 133 Lines: 55 Visible grid: 7315
|
||||
- Variations: isolated/merged color/b&w ordered/shuffled
|
||||
|
||||
---
|
||||
|
||||
|
|
@ -39,6 +39,10 @@ Cols: 133 Lines: 55 Visible grid: 7315
|
|||
|
||||
[sketch_190526a](https://github.com/villares/sketch-a-day/tree/master/2019/sketch_190526a) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]
|
||||
|
||||
- Number of possible lines on a 3x3 grid: 24
|
||||
- Number of combinations: 10626
|
||||
- Cols: 68 Lines: 45 Visible grid: 3060 (scrolling)
|
||||
|
||||
---
|
||||
|
||||

|
||||
|
|
@ -97,7 +101,7 @@ More experiments (check the code folder for other GIFs)
|
|||
|
||||
[sketch_190517b](https://github.com/villares/sketch-a-day/tree/master/2019/sketch_190517b) [[Py.Processing](https://villares.github.io/como-instalar-o-processing-modo-python/index-EN)]
|
||||
|
||||
Also... internation day against homophobia, transhoobia and biphobia.
|
||||
Also... internation day against homophobia, transphobia and biphobia.
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue