Class ColorBrush

Class Hierarchy

Color brush class.

Implements a solid-color brush used to fill areas.

Use a Color Brush to fill a 2D node with a solid color.

Inherits properties and message types from ColorBrushMetadata.

Synopsis

Methods
create()

Create a new color brush

create1()

Create a new color brush

ColorBrush.ColorBrush:create(name)

Create a new color brush.

Color assumes default property value.

Default rendering is used.

Parameters
name (string)

Name of the color brush.

ColorBrush.ColorBrush:create1(name, color)

Create a new color brush.

Default rendering is used.

Parameters
name (string)

Name of the color brush.

color (ColorRGBA)

Color to use.