Dart Documentationorson_chartsColor

Color class

Represents a color.

Static Properties

final Color BLACK #

The color black.

Color BLUE #

The color blue.

final Color GRAY #

The color gray.

Color GREEN #

The color green.

Color LIGHT_GRAY #

The color light-gray.

Color RED #

The color red.

final Color WHITE #

The color white.

Static Methods

Color parse(String colorStr) #

Constructors

new Color(int red, int green, int blue, int alpha) #

Creates a new color instance.

new Color.floatRGBA(num r, num g, num b, num a) #

Creates a new color instance with the specified r, g, b and a components (each in the range 0.0 to 1.0).

factory Color.hsb(num hue, num saturation, num brightness) #

Returns a new color instance.

new Color.rgb(int red, int green, int blue) #

Creates a new color instance with the specified red, green and blue components (each in the range 0 to 255).

Properties

int alpha #

int blue #

int green #

int red #

Methods

String toColorStr() #

Returns a color string.

String toRGBAStr() #

Returns a color string.