tesk9/palette/1.4.0

NOTE: the latest version is 3.0.1

Opacity

type Opacity

Provided for convenience. Equivalent to doing:

Opacity.custom 0

Provided for convenience. Equivalent to doing:

Opacity.custom 1.0
custom : Float -> Opacity

Pass in a value in [0, 1.0]. The value passed in will be clamped within these bounds.

map : (Float -> Float) -> Opacity -> Opacity

Note: results from the function you pass in will be clamped in [0, 1.0].

toString : Opacity -> String
toFloat : Opacity -> Float