From 18b0ef1159bdb1e1e98e9fc2ca5bf2ef0375d502 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sun, 15 Jan 2023 13:55:02 -0500 Subject: [PATCH] sigh --- canvas.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/canvas.go b/canvas.go index 89b5bda..51cd06b 100644 --- a/canvas.go +++ b/canvas.go @@ -4,8 +4,9 @@ import "image" import "image/draw" import "image/color" -// Canvas is like Image but also requires Set and SetRGBA methods. This -// interface can be easily satisfied using a BasicCanvas struct. +// 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. type Canvas interface { draw.Image Buffer () (data []color.RGBA, stride int)