newmana / chroma-elm / Chroma.Converter.Out.ToHex

Convert ExtColors to hex string (#RGB) or hex string with alpha channel (#RGBA)

Definition

toHex : Chroma.Types.ExtColor -> String

Takes a result from getColor and returns Integer (0-255) RGB values.

toHexAlpha : Chroma.Types.ExtColor -> String

Takes a result from getColor and returns Integer (0-255) RGB and alpha values.