Added a pseudorandom noise pattern

This commit is contained in:
Sasha Koshka
2023-01-24 18:15:46 -05:00
parent 5edfbf8110
commit c9c5f1d251
2 changed files with 33 additions and 0 deletions

View File

@@ -215,6 +215,17 @@ func (element *Artist) Resize (width, height int) {
Stroke: artist.Stroke { Pattern: uhex(0x00FF00), Weight: 5 },
},
element.cellAt(0, 7))
// 1, 7
artist.FillRectangle (
element,
artist.Noisy {
Low: uhex(0x000000FF),
High: uhex(0xFFFFFFFF),
Seed: 0,
},
element.cellAt(1, 7),
)
}
func (element *Artist) lines (weight int, bounds image.Rectangle) {