15 lines
401 B
Go
15 lines
401 B
Go
|
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
|
||
|
}
|