Przeglądaj źródła

Add documentation

jst 13 lat temu
rodzic
commit
a32116ce4a
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      converter.go

+ 3 - 2
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
 }