Gleam-0.1.1.0: HTML Canvas graphics, animations and simulations.

Safe HaskellSafe
LanguageHaskell2010

Color

Synopsis

Documentation

data Color Source #

Constructors

White 
Black 
Transparent 
Red 
Green 
Blue 
Yellow 
Cyan 
Magenta 
Rose 
Violet 
Azure 
Aquamarine 
Chartreuse 
Orange 
RGBA String

A hex color string.

Instances

Eq Color Source # 

Methods

(==) :: Color -> Color -> Bool

(/=) :: Color -> Color -> Bool

Show Color Source # 

Methods

showsPrec :: Int -> Color -> ShowS

show :: Color -> String

showList :: [Color] -> ShowS

convertColor :: Color -> String Source #

Converts a color to a html color string.