Created Icon interface

This commit is contained in:
2023-03-04 20:48:46 -05:00
parent ecaad02c0b
commit ae6cf128f8
5 changed files with 21 additions and 8 deletions

14
artist/icon.go Normal file
View File

@@ -0,0 +1,14 @@
package artist
import "image"
import "image/color"
import "git.tebibyte.media/sashakoshka/tomo/canvas"
type Icon interface {
// Draw draws the icon to the destination canvas at the specified point,
// using the specified color (if the icon is monochrome).
Draw (destination canvas.Canvas, color color.RGBA, at image.Point)
// Bounds returns the bounds of the icon.
Bounds () image.Rectangle
}