make art

with code (and simple rules)

by Sher Minn Chong / @piratefsh / Tech Talks For Technical Women July 2018

Sher Minn

malaysian

web platform engineer

generative art

art created with the assistance of a non-human, autonomous system

e.g. art with algorithms

### maze ```python for row in grid: for cell in row: if random() > 0.5: draw line from bottom right to top left of cell else draw line from bottom left to top right of cell ```

simple instructions repeated -> interesting visuals

recursion

koch snowflake

one level deeper

### recursive hexagon ```ruby create a grid of hexagon tilings 4.times do for each hexagon do replace with a smaller hexagon in the middle border each vertex of the hexagon with 4 small triangles end end fill each hexagon with a random teal shades fill each triangle with a random translucent pink shade ```

movement and geometry

bezier curve

bezier curve illustration

source: http://www.e-cartouche.ch

### gauze ```txt set stroke color to a translucent grey pick random points p0, p1, p2, p3 while true draw a bezier curve with points p0, p1, p2, p3 move each point p0, p1, p2, p3 ever so slightly in a random direction ```
### constellations ```ruby # create 20 random circles 20.times do x = random() y = random() circles.push({ center: Point.new(x, y), radius: random() }) end # for all intersecting circles # draw line between their centers for c1 in circles do for c2 in circles do if c1 and c2 intersect line(c1.center, c2.center) end end end ```

tools

not just for computers

algorithmic art before computers

Vera Molnar, 1960-1980s

Distribution Aleatoire De 4 Elements (Pour Prog. Ordinateur) / Random Distribution of 4 Elements (for the computer), 1970 [source]

Quatre Éléments Distribués au Hasard, 1959.
Material: Adhesive film strips stuck on cardboard [source]

A la Recherche de Paul Klee, 1971.
Material: felt tip pen on paper [source]

A la Recherche de Paul Klee, 1970.
Material: ink on paper, plotter drawing [source]

Un, Deux, Trois, 1952,
Material: Acrylic on canvas [source]

In preparation for Frieder [source]

Ben F. Laposky, 1950-1960

[source]

Various Oscillons [source]

Oscillons #41 [source]

p5.js recreation

variation #1 with color

variation #2 with color

end

tweet at me
@piratefsh