Color

Overview

Creates a new color, this is mainly a convenience class used to convert back to RGBA, most color properties in Tint accept css-type values such as "rgba(red,blue,green,alpha)" or named colors such as "red" or "blue".

Ancestors

  1. None
 

Descendants

  1. None
 

Constructors

new Color
Description

Creates a color object with the specified type and components.

Definition

new Color(value)

Members

alpha
Description

Gets the amount of translucency in the color.

Definition

number color.alpha
blue
Description

Gets the amount of blue in the color.

Definition

number color.blue
green
Description

Gets the amount of green in the color.

Definition

number color.green
red
Description

Gets the amount of red in the color.

Definition

number color.red