trying out generative art with Luxor.jl
(julia
). i did some of the exploring in Pluto
notebook, which adds some really nice interactivity.
in progress
this time i want to explore the simple idea of putting angled lines at regular grid points - and experimenting with placement (order, jitter), how properties change between elements (line thickness, hue, angle), possibly following perlin
noise or a version of random walk.
- using
Luxor.jl
to create the table of rose plots on the wikipedia page. I think this looks really beautiful.
The classic forms of those curves are basically cos()
plots in polar coordinates at different frequencies and to make things a bit easier for plotting - transformed into cartesian coordinates.
If you use a sawtooth
or triangularwave
waveform, the shapes become a bit more unusual.
my first idea was to use a direct drawing style (using lines and transforms), but I quickly discovered that using turtle graphics is a much more natural fit.
have a look at the code to see. i may add some details and mods here
- 6 turtles, spaced at 60º, $\frac{\pi}{6}, moving out from centre with randomised step lengths and simple 0.5 probability of putting either a hexagon or a circle.
using Luxor.jl
HexGrid()
generator, which supplies center coordinates for points on a hex grid (neat!)