color

module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: MIT

README

Golang Color Package

Provides several types for representing linear RGB and OkLab colours, compatible with the standard color package.

The types in this package use float64 components and are definitely overkill - you don't need 192 or 256 bit colour. Probably.

There are two main groups - the linear RGB colours, ideal for compositing; and the OkLab colors, ideal for comparing colours or for creating visually pleasing gradients.

Installation

go get smariot.com/color

Documentation

You can find the documentation at pkg.go.dev.

Directories

Path Synopsis
internal
Provides a color.Color type for dealing with linear grayscale colours without alpha.
Provides a color.Color type for dealing with linear grayscale colours without alpha.
Provides a color.Color type for dealing with premultiplied linear grayscale+alpha colours.
Provides a color.Color type for dealing with premultiplied linear grayscale+alpha colours.
Provides a color.Color type for dealing with linear RGB colours without alpha.
Provides a color.Color type for dealing with linear RGB colours without alpha.
Provides a color.Color type for dealing with premultiplied linear RGBA colours.
Provides a color.Color type for dealing with premultiplied linear RGBA colours.
Provides a color.Color type for dealing with non-premultiplied linear grayscale+alpha colours.
Provides a color.Color type for dealing with non-premultiplied linear grayscale+alpha colours.
Provides a color.Color type for dealing with non-premultiplied linear RGBA colours.
Provides a color.Color type for dealing with non-premultiplied linear RGBA colours.
Provides a color.Color type for dealing with non-premultiplied OkLab+Alpha colours.
Provides a color.Color type for dealing with non-premultiplied OkLab+Alpha colours.
Provides a color.Color type for dealing with OkLab colours without alpha.
Provides a color.Color type for dealing with OkLab colours without alpha.
Provides a color.Color type for dealing with premultiplied OkLab+Alpha colours.
Provides a color.Color type for dealing with premultiplied OkLab+Alpha colours.

Jump to

Keyboard shortcuts

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