urbanists.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
We're a server for people who like bikes, transit, and walkable cities. Let's get to know each other!

Server stats:

557
active users

#fractal

45 posts20 participants8 posts today

```
library(tidyverse)
z = function(n) {
bb = function(i) {
x = y = 0
for (k in 0:(n - 1)) {
x = x + ((floor(i/2^(2 * k))) %% 2) * 2^k
y = y + ((floor(i/2^(2 * k + 1))) %% 2) * 2^k
}
c(x, y)
}
as.data.frame(t(sapply(0:(4^n - 1), bb)))
}
ggplot(z(6)) +
geom_path(aes(x=V1, y=V2, col=sin(V1/4)+cos(V2/4)), show.legend=F) +
scale_colour_gradient(low='orange', high='blue') +
theme_void()
```

en.wikipedia.org/wiki/Z-order_
#rstats #generativeart #tilingtuesday #rtistry #fractal