Icons are now no longer patterns, they are images

This commit is contained in:
2023-02-12 10:55:32 -05:00
parent 9e8e986977
commit 82e92f1e2e
3 changed files with 22 additions and 6 deletions

View File

@@ -4,6 +4,12 @@ import "image"
import "image/draw"
import "image/color"
// Image represents an immutable canvas.
type Image interface {
image.Image
RGBAAt (x, y int) color.RGBA
}
// Canvas is like draw.Image but is also able to return a raw pixel buffer for
// more efficient drawing. This interface can be easily satisfied using a
// BasicCanvas struct.