Added the BackgroundParent interface

Parents are now able to draw backgrounds for their children. This
means we can now have elements inside other elements that aren't
restricted to one background color.
This commit is contained in:
2023-04-02 22:02:55 -04:00
parent 7521808872
commit 6ede0d0770
9 changed files with 71 additions and 14 deletions

View File

@@ -238,7 +238,7 @@ func (Default) Pattern (id tomo.Pattern, state tomo.State, c tomo.Case) artist.P
case tomo.PatternMercury: return defaultTextures[13][offset]
case tomo.PatternTableHead: return defaultTextures[14][offset]
case tomo.PatternTableCell: return defaultTextures[15][offset]
default: return patterns.Uhex(0xFF00FFFF)
default: return patterns.Uhex(0xFF00FFFF)
}
}