An Intro to Generative Art with Scala
summary
Scala code uses Processing jars (manual extraction then a provided template) and scala-cli to live‑code flow fields: a 1000×1000 canvas, grid resolution (width 0.01), Perlin noise for smooth angles, and step parameters that change output dramatically. Examples plot up to hundreds of 500 lines with configurable step length* and stop when off‑grid; a NoLoop fix prevents continuous reseeding. Repo “intro to flow fields and Scala” contains runnable examples.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 4:24Generative art basics
- 7:34Processing with Scala
- 9:20Flow fields basics
- 12:48Initial flow field grid
- 16:45Storing angles in grid
- 18:12Visualizing with arrows
- 21:48Drawing curves along field
- 22:49Perlin noise for smoother fields
- 26:19Refining visual output
- 27:23Multiple flow field lines
- 29:49Fixing infinite loop
- 31:14Drawing lines instead of points
- 31:55Adding color and stroke
- 33:19Parameter variations for art
- 34:44Final examples and blog








