Discussion
Loading...

#Tag

Log in
  • About
  • Code of conduct
  • Privacy
  • About Bonfire
ƧƿѦςɛ♏ѦਹѤʞ boosted
Tariq
Tariq
@rzeta0@mathstodon.xyz  ·  activity timestamp yesterday

Genuary 2026 9

https://openprocessing.org/sketch/2843985

#genuary #genuary2026 #genuary9 #creativecoding #generative #p5js

genuary_2026_9
Your browser does not support the video tag.
cellular automota with "crazy" rule - yellow forms being spawned and moving up and left
  • Copy link
  • Flag this post
  • Block
Tariq
Tariq
@rzeta0@mathstodon.xyz  ·  activity timestamp yesterday

Genuary 2026 9

https://openprocessing.org/sketch/2843985

#genuary #genuary2026 #genuary9 #creativecoding #generative #p5js

genuary_2026_9
Your browser does not support the video tag.
cellular automota with "crazy" rule - yellow forms being spawned and moving up and left
  • Copy link
  • Flag this post
  • Block
blinry
blinry
@blinry@chaos.social  ·  activity timestamp 3 days ago

#genuary Day 8: "A City. Create a generative metropolis."

Had a lot of fun designing the "planetize" coordinate transform! 😊 It's so cool to think in shader logic!

#genuary2026 #genuary8 #glsl

Your browser does not support the video tag.
GIF
GIF
A skyline of skyscrapers, reflecting in water, rendered as a simple geometric image. Sometimes, it folds together to a "tiny planet" shape.
A skyline of skyscrapers, reflecting in water, rendered as a simple geometric image. Sometimes, it folds together to a "tiny planet" shape.
blinry
blinry
@blinry@chaos.social replied  ·  activity timestamp yesterday

#genuary Day 9: "Crazy automaton"

Made an explorer for "elementary cellular automata"!

By moving the mouse, you can change the Wolfram code (which defines, in bits, a table for how to compute a pixel from the previous line).

This also was the first time I've tried the #fennel language – a Lisp that compiles to Lua! #tic80 has several of these niche little languages built-in! <3

#genuary2026 #genuary9

Your browser does not support the video tag.
GIF
GIF
As I move my mouse, a little number changes in the top left of a pixely screen. With each pattern, a different number develops.
As I move my mouse, a little number changes in the top left of a pixely screen. With each pattern, a different number develops.
  • Copy link
  • Flag this comment
  • Block
Madagascar_Sky boosted
Stefan Siegert
Stefan Siegert
@safest_integer@mastodon.social  ·  activity timestamp 2 days ago

Genuary 2026 - 9: "Crazy automaton."

Modified Game of Life on a random Voronoi tesselation. A cell survives if it has exactly one neighbor, a new one gets spawned from exactly two neighbors. R code in alt text.

#genuary #genuary2026 #genuary9 #rstats #gameoflife

Your browser does not support the video tag.
GIF
GIF
# R code: Game of life on random 2d voronoi tesselation library(deldir) set.seed(1) n = 1000 pts = data.frame(x = runif(n), y = runif(n)) v = deldir(pts$x, pts$y) tiles = tile.list(v) edges = v$dirsgs[, c("ind1", "ind2")] neighbors = split(c(edges$ind2, edges$ind1), c(edges$ind1, edges$ind2)) state = rbinom(n, 1, 0.05) par(mar=rep(0,4)) while(1) { nb = sapply(1:n, function(i) sum(state[neighbors[[as.character(i)]]], na.rm = TRUE)) state = as.numeric(state + nb == 2) plot(0, 0, type = "n", xlim = c(0,1), ylim = c(0,1)) for (i in 1:n) { polygon(tiles[[i]]$x, tiles[[i]]$y, col = grey(1-state[i])) } Sys.sleep(.5) }
# R code: Game of life on random 2d voronoi tesselation library(deldir) set.seed(1) n = 1000 pts = data.frame(x = runif(n), y = runif(n)) v = deldir(pts$x, pts$y) tiles = tile.list(v) edges = v$dirsgs[, c("ind1", "ind2")] neighbors = split(c(edges$ind2, edges$ind1), c(edges$ind1, edges$ind2)) state = rbinom(n, 1, 0.05) par(mar=rep(0,4)) while(1) { nb = sapply(1:n, function(i) sum(state[neighbors[[as.character(i)]]], na.rm = TRUE)) state = as.numeric(state + nb == 2) plot(0, 0, type = "n", xlim = c(0,1), ylim = c(0,1)) for (i in 1:n) { polygon(tiles[[i]]$x, tiles[[i]]$y, col = grey(1-state[i])) } Sys.sleep(.5) }
  • Copy link
  • Flag this post
  • Block
Stefan Siegert
Stefan Siegert
@safest_integer@mastodon.social  ·  activity timestamp 2 days ago

Genuary 2026 - 9: "Crazy automaton."

Modified Game of Life on a random Voronoi tesselation. A cell survives if it has exactly one neighbor, a new one gets spawned from exactly two neighbors. R code in alt text.

#genuary #genuary2026 #genuary9 #rstats #gameoflife

Your browser does not support the video tag.
GIF
GIF
# R code: Game of life on random 2d voronoi tesselation library(deldir) set.seed(1) n = 1000 pts = data.frame(x = runif(n), y = runif(n)) v = deldir(pts$x, pts$y) tiles = tile.list(v) edges = v$dirsgs[, c("ind1", "ind2")] neighbors = split(c(edges$ind2, edges$ind1), c(edges$ind1, edges$ind2)) state = rbinom(n, 1, 0.05) par(mar=rep(0,4)) while(1) { nb = sapply(1:n, function(i) sum(state[neighbors[[as.character(i)]]], na.rm = TRUE)) state = as.numeric(state + nb == 2) plot(0, 0, type = "n", xlim = c(0,1), ylim = c(0,1)) for (i in 1:n) { polygon(tiles[[i]]$x, tiles[[i]]$y, col = grey(1-state[i])) } Sys.sleep(.5) }
# R code: Game of life on random 2d voronoi tesselation library(deldir) set.seed(1) n = 1000 pts = data.frame(x = runif(n), y = runif(n)) v = deldir(pts$x, pts$y) tiles = tile.list(v) edges = v$dirsgs[, c("ind1", "ind2")] neighbors = split(c(edges$ind2, edges$ind1), c(edges$ind1, edges$ind2)) state = rbinom(n, 1, 0.05) par(mar=rep(0,4)) while(1) { nb = sapply(1:n, function(i) sum(state[neighbors[[as.character(i)]]], na.rm = TRUE)) state = as.numeric(state + nb == 2) plot(0, 0, type = "n", xlim = c(0,1), ylim = c(0,1)) for (i in 1:n) { polygon(tiles[[i]]$x, tiles[[i]]$y, col = grey(1-state[i])) } Sys.sleep(.5) }
  • Copy link
  • Flag this post
  • Block

BT Free Social

BT Free is a non-profit organization founded by @ozoned@btfree.social . It's goal is for digital privacy rights, advocacy and consulting. This goal will be attained by hosting open platforms to allow others to seamlessly join the Fediverse on moderated instances or by helping others join the Fediverse.

BT Free Social: About · Code of conduct · Privacy ·
Bonfire social · 1.0.1-beta.22 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Code of Conduct