+
Skip to content

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

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载