Labs · Evolutionary Computing

Evolving a Picture from Triangles

Evolving a Picture from Triangles simulation

The phrase GA matched letters. This one matches pixels. The genome is a list of semi-transparent coloured triangles. Each iteration mutates one gene (move a corner, nudge a colour, change opacity). If the rendered result is closer to the target picture (smaller sum of squared pixel differences), the mutation is kept.

This is a (1+1) evolution strategy, the simplest kind of evolutionary hill-climbing. Watch random shards slowly organise into the target.

Pick "Text" and type a single bold letter or emoji, then compare 20 triangles with 120.

Controls

Evolved from Evolving a Phrase.