MCPcopy Index your code
hub / github.com/damoonrashidi/generative-art

github.com/damoonrashidi/generative-art @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
191 symbols 404 edges 51 files 50 documented · 26%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Generative Art while learning Rust

The binaries in this repo create generative artworks that can be fed to an axidraw machine that uses a paint brush/pen/pencil to paint an actual painting.

Generate a new iteration of a given artwork by running cargo run --bin {{name}} e.g. cargo run --bin forces.

Currently Forces and Piet will add their configuration (all parameters that created the final output) as a comment at the end of the svg and they can be recreated (somewhat) by supplying them as CLI parameters

forces --size=1500.0 --line-count=5000 --chaos=1.5 --smoothness=1000.0 --seed=999
piet --size=1000 --rounds=5 --split-chance=0.7

Generated artworks can be found in ./outputs/{name}/{name}-{timestamp}.svg

Extension points exported contracts — how you extend this code

Shape (Interface)
Generic shape definition, can be a Circle, Rectangle, Path, etc [5 implementers]
src/shapes/shape.rs
Palette (Interface)
(no doc) [3 implementers]
src/palette/mod.rs

Core symbols most depended-on inside this repo

add_shape
called by 12
src/svg/group.rs
insert
called by 11
src/shapes/pointmap.rs
contains
called by 10
src/shapes/blob.rs
x_range
called by 10
src/shapes/rectangle.rs
center
called by 9
src/shapes/blob.rs
y_range
called by 9
src/shapes/rectangle.rs
set_new_svg
called by 9
src/paintings/wildlands/ui.rs
set_new_image
called by 9
src/paintings/forces/ui.rs

Shape

Method 119
Function 40
Class 26
Enum 4
Interface 2

Languages

Rust100%

Modules by API surface

src/shapes/rectangle.rs24 symbols
src/shapes/pointmap.rs15 symbols
src/shapes/point.rs15 symbols
src/shapes/path.rs14 symbols
src/shapes/circle.rs14 symbols
src/shapes/blob.rs9 symbols
src/svg/group.rs7 symbols
src/palette/regional_palette.rs7 symbols
src/svg/document.rs6 symbols
src/palette/palettes.rs6 symbols
src/paintings/wildlands/ui.rs6 symbols
src/paintings/piet/ui.rs6 symbols

For agents

$ claude mcp add generative-art \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact