From 31e12607d7397c1cf02d156ce66b62c15afff4c9 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Thu, 3 Oct 2019 19:26:37 +0200 Subject: [PATCH] op/paint: note that ImageOp caches image contents Signed-off-by: Elias Naur --- op/paint/paint.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/op/paint/paint.go b/op/paint/paint.go index 579fd34e..81093233 100644 --- a/op/paint/paint.go +++ b/op/paint/paint.go @@ -16,7 +16,10 @@ import ( // ImageOp sets the material to a section of an // image. type ImageOp struct { - // Src is the image. + // Src is the image. Note that once a particular image.Image has + // been used by an ImageOp, updating the image contents might not + // be reflected in the rendered image. Use a new image.Image + // instead. Src image.Image // Rect defines the section of Src to use. Rect image.Rectangle