Day 17's prompt is "a grid inside a grid inside a grid". (Playing catch up - a day late to post!)
💡 Ijea's blog post on subdivision: https://ijeamaka-anyene.netlify.app/posts/2021-09-07-so-you-want-to-subdivide-a-rectangle/
💡 Danielle's workshop materials on tiles and tessellations: https://art-from-code.netlify.app/day-2/session-2/
Code for #py5 (py5coding.org) imported mode
Recursive grid - I'm always grateful for Takao Shunsuke's inspiration.
grid(0, 0, width, 4)
def grid(grid_x, grid_y, grid_size, n):
cell_size = grid_size / n
for i in range(n):
x = grid_x + i * cell_size
for j in range(n):
y = grid_y + j * cell_size
if cell_size < 20:
fill(x % 255, 200, y % 255)
circle(x + cell_size / 2,
y + cell_size / 2,
elif n == 1:
fill(0, 0, 200)
square(x, y, cell_size)
next_n = int(random(1, 5))
grid(x, y, cell_size, next_n)
I'm not sure how much I like this sketch, but I guess it has some cool elements such as the motion control. Video compression is a bugger on this one, so you'll have to run it to see that aspect.
Day 17: A grid inside a grid inside a grid
Coincidentally, my grid is also a little woobly, just like @meghansharris's, lol.
It is #genuary17 and I want to try something different from the recursive and self-similar grids.
A 2x1 grid each containing a 25x1 grid containing a 600x800 that shows a state from a 1x2 grid.
What is shown is not noise but a pattern that correlates with how much time it took to compute each of the 600x800 grid cells.
Prompt for Day 17: "A grid inside a grid inside a grid"
For this one, it's tempting to go with recursion, but I decided to resist.
Here are the posts for my supporters on ko-fi and patreon:
Genuary 17 - Stellar Flags
Today's #genuary prompt "Grid inside a grid, inside a grid" gave me fits, tbh. Deleted and started over at least 4 times. Just couldn't make anything look good. Thankfully, I eventually I did get to this, which I like the warmth and texture of.
Code at: https://openprocessing.org/sketch/1797434
Though fair warning, it takes a fair while to render.