From a32116ce4a9409d2e99ec7ea3f48993e35463659 Mon Sep 17 00:00:00 2001 From: jst Date: Tue, 11 Dec 2012 20:35:02 +0100 Subject: [PATCH] Add documentation --- converter.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/converter.go b/converter.go index bf610c3..c301fee 100644 --- a/converter.go +++ b/converter.go @@ -39,8 +39,9 @@ func replicateBorder(x, y int, rect image.Rectangle) (xx, yy int) { return } -// converter allows to retrieve -// a colorArray for points of an image. +// converter allows to retrieve a colorArray for points of an image. +// the idea is to speed up computation by providing optimized implementations +// for different image types instead of relying on image.Image.At(). type converter interface { at(x, y int) colorArray }