feat: primitive styling
This commit is contained in:
@@ -231,10 +231,11 @@ func (d *fakePrimitiveDrawer) CopyShift(dx, dy int) {
|
||||
d.snapshotCommand("CopyShift", float64(dx), float64(dy))
|
||||
}
|
||||
|
||||
func (d *fakePrimitiveDrawer) ClearAll() {
|
||||
d.snapshotCommand("ClearAll")
|
||||
func (d *fakePrimitiveDrawer) ClearAllTo(_ color.Color) {
|
||||
// Store as a command; tests usually only care that it was called.
|
||||
d.snapshotCommand("ClearAllTo")
|
||||
}
|
||||
|
||||
func (d *fakePrimitiveDrawer) ClearRect(x, y, w, h int) {
|
||||
d.snapshotCommand("ClearRect", float64(x), float64(y), float64(w), float64(h))
|
||||
func (d *fakePrimitiveDrawer) ClearRectTo(x, y, w, h int, _ color.Color) {
|
||||
d.snapshotCommand("ClearRectTo", float64(x), float64(y), float64(w), float64(h))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user