doodle/pkg/drawtool
Noah Petherbridge eb24858830 Brush Pattern Textures
Palette swatches gain a new property: Pattern.

Patterns are grayscale textures that the swatch color will sample
against when drawing pixels to the level, by taking the world coordinate
modulo a value inside the texture.

A few algorithms were tried (Screen, Overlay), this branch lands on one
that tries to cast the color from grayscale which comes out rather dark;
to get a patterned color to look black while still seeing the pattern,
the color needs to be as bright as #777 to get the effect.
2021-06-09 22:36:32 -07:00
..
history_test.go Cut lib/render into its own package, change all imports 2019-12-22 18:21:58 -08:00
history.go Drawing Strokes and Undo/Redo Functionality 2019-07-03 16:25:23 -07:00
shapes.go Lemon-shaped Ellipse Tool (WIP) 2019-07-14 14:18:44 -07:00
stroke.go Brush Pattern Textures 2021-06-09 22:36:32 -07:00
tools.go Lemon-shaped Ellipse Tool (WIP) 2019-07-14 14:18:44 -07:00