x <- 1:32
image(x, x,
outer(x, x, FUN=function(x, y) (bitwXor(x, y) %% 9) != 0),
col=c("white", "black"))
dev.copy(png, "~/x_xor_y_mod_9.png")
dev.off()
Looking forward to creating a GIF using the gifski package, which I learned about from gganimate, which I'm also looking forward to exploring.

No comments:
Post a Comment