Expand description

A library providing simple Color and Gradient types along with useful transformations and presets.

Inspiration taken from [elm-lang’s color module] (https://github.com/elm-lang/core/blob/62b22218c42fb8ccc996c86bea450a14991ab815/src/Color.elm)

Module for working with colors. Includes RGB and HSL creation, gradients and built-in names.

Structs

The parts of HSL along with an alpha for transparency.

The parts of RGB along with an alpha for transparency.

Enums

Color supporting RGB and HSL variants.

Linear or Radial Gradient.

Constants

Straight Black.

Sky Blue - Regular - #3465A4

Chocolate - Regular - #C17D11

Charcoal - Regular - #555753

Sky Blue - Dark - #204A87

Chocolate - Dark - #8F5902

Charcoal - Dark - #2E3436

Alluminium - Dark

Chameleon - Dark - #4E9A06

Aluminium - Dark - #BABDB6

Orange - Dark - #CE5C00

Plum - Dark - #5C3566

Scarlet Red - Dark - #A30000

Butter - Dark - #C4A000

Alluminium - Regular

Chameleon - Regular - #73D216

Aluminium - Regular - #D3D7CF

Sky Blue - Light - #729FCF

Chocolate - Light - #E9B96E

Charcoal - Light - #888A85

Alluminium - Light

Chameleon - Light - #8AE234

Aluminium - Light - #EEEEEC

Orange - Light - #FCAF3E

Plum - Light - #AD7FA8

Scarlet Red - Light - #EF2929

Butter - Light - #FCE94F

Orange - Regular - #F57900

Plum - Regular - #75507B

Scarlet Red - Regular - #CC0000

Transparent

Straight White.

Butter - Regular - #EDD400

Traits

Types that can be colored.

Functions

Convert an f32 color to a byte.

Produce a gray based on the input. 0.0 is white, 1.0 is black.

Produce a gray based on the input. 0.0 is white, 1.0 is black.

Create HSL colors. This gives you access to colors more like a color wheel, where all hues are arranged in a circle that you specify with radians.

Pure function for converting hsl to rgb.

Create HSL colors with an alpha component for transparency.

Create a linear gradient.

Create a radial gradient.

Create RGB colors from numbers between 0.0 and 1.0.

Create RGB colors from numbers between 0 and 255 inclusive.

Pure function for converting rgb to hsl.

Create RGB colors with an alpha component for transparency. The alpha component is specified with numbers between 0 and 1.

Create RGB colors from numbers between 0 and 255 inclusive. The alpha component is specified with numbers between 0 and 1.

Type Definitions

Regional spelling alias.