diff --git a/2019/sketch_190526a/sketch_190526a.pyde b/2019/sketch_190526a/sketch_190526a.pyde index f2f45f3b..04d89617 100644 --- a/2019/sketch_190526a/sketch_190526a.pyde +++ b/2019/sketch_190526a/sketch_190526a.pyde @@ -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) diff --git a/2019/sketch_190527a/mode-0-102.png b/2019/sketch_190527a/mode-0-102.png new file mode 100644 index 00000000..cc43a84d Binary files /dev/null and b/2019/sketch_190527a/mode-0-102.png differ diff --git a/2019/sketch_190527a/mode-0-79.png b/2019/sketch_190527a/mode-0-79.png new file mode 100644 index 00000000..fcc76f40 Binary files /dev/null and b/2019/sketch_190527a/mode-0-79.png differ diff --git a/2019/sketch_190527a/mode-1-108.png b/2019/sketch_190527a/mode-1-108.png new file mode 100644 index 00000000..fdff6482 Binary files /dev/null and b/2019/sketch_190527a/mode-1-108.png differ diff --git a/2019/sketch_190527a/mode-1-87.png b/2019/sketch_190527a/mode-1-87.png new file mode 100644 index 00000000..9d48a996 Binary files /dev/null and b/2019/sketch_190527a/mode-1-87.png differ diff --git a/2019/sketch_190527a/mode-2-118.png b/2019/sketch_190527a/mode-2-118.png new file mode 100644 index 00000000..5d44edda Binary files /dev/null and b/2019/sketch_190527a/mode-2-118.png differ diff --git a/2019/sketch_190527a/mode-2-92.png b/2019/sketch_190527a/mode-2-92.png new file mode 100644 index 00000000..4f846dd6 Binary files /dev/null and b/2019/sketch_190527a/mode-2-92.png differ diff --git a/2019/sketch_190527a/sketch_190527a.pyde b/2019/sketch_190527a/sketch_190527a.pyde index 0482c6f6..3189dacf 100644 --- a/2019/sketch_190527a/sketch_190527a.pyde +++ b/2019/sketch_190527a/sketch_190527a.pyde @@ -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": diff --git a/README.md b/README.md index d151b54a..4e1445a0 100644 --- a/README.md +++ b/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) + --- ![sketch_190525a](2019/sketch_190525a/sketch_190525a.png) @@ -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. ---