Skip to content

Package imgdye provides tools dying an image, for the Go programming language. One use case for this is giving a (new) image a background-color.

License

Notifications You must be signed in to change notification settings

reiver/go-imgdye

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-imgdye

Package imgdye provides tools dying an image, for the Go programming language.

One use case for this is giving a (new) image a background-color.

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-imgdye

GoDoc

Examples

Here is an example of making a whole image one single single.

import "github.com/reiver/go-imgdye"

// ...

var img draw.Image // = ...

// ...

var c color.Color = color.NRGBA{0xFF,0x1D,0xCE, 0xFF} // #FF1DCE i.e., hot magenta

imgdye.Dye(img, c)

Import

To import package imgdye use import code like the follownig:

import "github.com/reiver/go-imgdye"

Installation

To install package imgdye do the following:

GOPROXY=direct go get https://github.com/reiver/go-imgdye

Author

Package imgdye was written by Charles Iliya Krempeaux

About

Package imgdye provides tools dying an image, for the Go programming language. One use case for this is giving a (new) image a background-color.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages