Skip to content

Collection of established color values (non-alpha-premultiplied).

Notifications You must be signed in to change notification settings

gio-tools/colors

Repository files navigation

colors

go get gio.tools/colors

A collection of established color values using color.NRGBA (non-alpha-premultiplied).

import "gio.tools/colors"

// Material colors such as...
colors.Pink200
colors.AmberA400
colors.BlueGrey500

// Apple foundation colors such as...
colors.IOSDarkBlue
colors.MacOSLightPurple
colors.WatchOSTeal

// CSS colors such as...
colors.AliceBlue
colors.DarkMagenta
colors.LimeGreen
colors.Red

Why not alpha-premultiplied (color.RGBA)?

  1. Gio APIs use color.NRGBA, and the primary intent of this package is for use with Gio.
  2. As mentioned in the commit description when Gio switched, most APIs use non-premultiplied for the sake of clarity.

About

Collection of established color values (non-alpha-premultiplied).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages