Packages

Chameleon is a utility for converting colors from one color model to another. Conversions can be made to/from RGB, CMYK, Hex, HSL, Pantone, and even Keywords. For example: "FFFFFF" -> %{c: 0, m: 0, y: 0, k: 0}

Retired package: Release invalid - This is a prerelease and should nto be considered as stable

Current section

Files

Jump to
chameleon lib chameleon color.ex
Raw

lib/chameleon/color.ex

defprotocol Chameleon.Color do
@moduledoc """
Performs the conversions from one color model to another.
"""
@spec convert(struct()) :: struct()
def convert(conversion)
end