imgdye

package module
v0.0.0-...-b8abfbc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 3 Imported by: 2

README

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dye

func Dye(img draw.Image, c color.Color)

Dye colors the whole image one single color.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL