A walkthrough of translating Georg Nees' 1968 'Schotter' generative art from ALGOL (via a Python implementation) into R using base plot. The key challenge is replicating a stateful pseudo-random number generator — solved in R using the <<- operator to maintain internal state inside a closure, mimicking Python's class-based approach. The post also explores variations: swapping seeds, using different seeds, and coloring squares with a viridis palette based on grid position.
Table of contents
RelatedSort: