From 2d6edc049a84f7d9ca551e06968b3956cee5207e Mon Sep 17 00:00:00 2001 From: jst Date: Tue, 11 Dec 2012 19:57:34 +0100 Subject: [PATCH] Change ordering --- converter.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/converter.go b/converter.go index 9d30c1b..bf610c3 100644 --- a/converter.go +++ b/converter.go @@ -23,16 +23,6 @@ import ( type colorArray [4]float32 -// converter allows to retrieve -// a colorArray for points of an image -type converter interface { - at(x, y int) colorArray -} - -type genericConverter struct { - src image.Image -} - func replicateBorder1d(x, min, max int) int { if x < min { x = min @@ -49,6 +39,16 @@ func replicateBorder(x, y int, rect image.Rectangle) (xx, yy int) { return } +// converter allows to retrieve +// a colorArray for points of an image. +type converter interface { + at(x, y int) colorArray +} + +type genericConverter struct { + src image.Image +} + func (c *genericConverter) at(x, y int) colorArray { r, g, b, a := c.src.At(replicateBorder(x, y, c.src.Bounds())).RGBA() return colorArray{