Color

Type module

Sources

Items from Color can be imported/included and used via following ways.

/**
 * --------------------------------------------------------
 * Import via: Color.ts
 * Access items like: $color.myVariable
 *                    $color.myFunction()
 * --------------------------------------------------------
 */
import * as $color from "@amcharts/amcharts4/Color";

Variables

Color does not have any variables.

Functions

toColor(

value: any

)

#

Returns Color

Converts any value into a Color.

isColor(

value: any

)

#

Returns boolean

Checks if supplied argument is instance of Color.

color(

value?: string | iRGB | Color,
alpha?: number

)

#

Returns Color

Resolves an input variable to a normal iRGB color and creates Color object for it.

castColor(

value: any

)

#

Returns Color

Converts any value to Color.