This repository has been archived on 2023-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
tomo-old/artist/icon.go

14 lines
342 B
Go
Raw Normal View History

2023-03-04 18:48:46 -07:00
package artist
import "image"
import "image/color"
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, color color.RGBA, at image.Point)
2023-03-04 18:48:46 -07:00
// Bounds returns the bounds of the icon.
Bounds () image.Rectangle
}