techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

5.3K
active users

#rtistry

4 posts4 participants0 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

i can't help but notice that the aesthetic on this series has drifted over time. on the left is a piece generated with version 13 (seed 2261), and on the right is a piece generated from version 45 (seed 4406). shared structural components notwithstanding, the style is quite different

Life has been 'lifeing'. Everything is chaotic and I'm just patiently waiting for May for a vacation. In the meantime, I am slowly working on my artpack package. I'm creating convenience functions, group_sample() and group_slice() that will allow you to quickly sample/slice entire groups out of data frames. This is something I personally do a lot for my art. Being able to drop groups of data can lead to some cool visuals sometimes: #rtistry w/ #ggplot2 in #rstats.