I think you're best off not taking the RGBA values and then building a color from them. Just take the color you're given and use m.Set(x, y, c) on the target image. If you need to modify the color, one way to do that would be to create your own object that implements the color.Color interface (the RGBA() method) and returns int32 values based on the source color's values. For example swapping red & green. Maybe this example will help: https://play.golang.org/p/vD1YBLR7nn
On Sun, Jul 3, 2016 at 7:09 PM simran <simrangamb...@gmail.com> wrote: > Hi Dan, > > I get a "page not found" on all those four links... > > cheers, > > simran. > > On Mon, Jul 4, 2016 at 10:22 AM, Dan Kortschak < > dan.kortsc...@adelaide.edu.au> wrote: > >> github.com/gonum/matrix/mat64 (soonish to be gonum.org/pkg/matrix/mat64) >> is a general purpose matrix library. >> >> A more specific image maths package is available at >> github.com/go-gl/mathgl/mgl{32,64} >> <http://github.com/go-gl/mathgl/mgl%7B32,64%7D>. >> >> On Mon, 2016-07-04 at 10:07 +1000, simran wrote: >> > Hi Dan, >> > >> > I am hoping to find a general matrix library as i want to write my own >> > rotation, translation, reflection methods; however, if you do know a >> > good >> > image library doing these, i'd appreciate it as a reference anyway. >> > >> > cheers, >> > >> > simran. >> >> >> > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.