Skip to content

Package palette2048_solarized provides the Solarized color palette in the form of 256 RGBA color with 8-bits per color channel, that when used with the https://github.com/reiver/go-palette2048 package works with Go's built-in "image", "image/color", and "image/draw" packages.

License

Notifications You must be signed in to change notification settings

reiver/go-palette2048_solarized

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-palette2048_solarized

Package palette2048_solarized provides the Solarized color palette in the form of 256 RGBA color with 8-bits per color channel, that when used with the https://github.com/reiver/go-palette2048 package works with Go's built-in "image", "image/color", and "image/draw" packages.

Documention

Online documentation, which includes examples, can be found at: https://github.com/reiver/go-palette2048_solarized

GoDoc

Example

import (
	"github.com/reiver/go-palette2048"
	"github.com/reiver/go-palette2048_solarized"
)

// ...

palette := palette2048.Slice(palette2048_solarized.Palette)

// ...

// Get the color at a specific index in the palette.
color := palette.Color(index)

// ...

// Get the color in the palette that is closet to a reference color.
closestColor := palette.Convert(referenceColor)

See Also

Also see:

Solarized

To learn more about the Solarized color palette refer to: https://ethanschoonover.com/solarized/

About

Package palette2048_solarized provides the Solarized color palette in the form of 256 RGBA color with 8-bits per color channel, that when used with the https://github.com/reiver/go-palette2048 package works with Go's built-in "image", "image/color", and "image/draw" packages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages