Created simple bordered pattern

This commit is contained in:
2023-01-20 19:24:21 -05:00
parent befec471db
commit a71e726016
6 changed files with 53 additions and 20 deletions

View File

@@ -45,7 +45,7 @@ func (element *Artist) Resize (width, height int) {
// 2, 0
artist.FillRectangle (
element,
artist.NewMultiBorder (
artist.NewMultiBordered (
artist.Stroke { Pattern: uhex(0xFF0000FF), Weight: 1 },
artist.Stroke { Pattern: uhex(0x888800FF), Weight: 2 },
artist.Stroke { Pattern: uhex(0x00FF00FF), Weight: 3 },
@@ -54,6 +54,15 @@ func (element *Artist) Resize (width, height int) {
),
element.cellAt(2, 0))
// 3, 0
artist.FillRectangle (
element,
artist.Bordered {
Stroke: artist.Stroke { Pattern: uhex(0x0000FFFF), Weight: 5 },
Fill: uhex(0xFF0000FF),
},
element.cellAt(3, 0))
// 0, 1 - 0, 3
for x := 0; x < 4; x ++ {
artist.FillRectangle (