Function: to_color

Function: to_color

since 0.3.7

Usage

 to_color(any value)

Convert any value to a color.

Parameters

Parameter Type Description
input any type Value to convert to a color

Examples

 to_color("red") == rgb(255,0,0)