Bauhaus engine
Name: bauhaus. Output: SVG. Composes geometric shapes — a background, a
rectangle, a circle, and a line — with hash-driven sizes, positions, and
rotations, optionally adding more shapes.
Avatar::engine('bauhaus')
->seed('user@example.com')
->size(256)
->numShapes(6)
->generate();
Options
| Option | Method | Type | Default |
|---|---|---|---|
| Number of shapes | numShapes() | int | 4 |
The base composition always uses four shapes. When numShapes is greater than
4, each additional shape is one of a triangle, hexagon, small circle, or small
rectangle, selected and placed from the seed's hash.
Colors
The color palette is not configurable. The engine selects one of four built-in
warm palettes based on the seed's hash. The numColors builder option does not
affect this engine.