SET_BRUSH()

Syntax

SET_BRUSH( Color_Name as C )

SET_BRUSH( Color_Code as C )

Argument

Description

Color_Name

A named Alpha Five color. The following standard colors are provided in Alpha Five.

Aqua

Aqua White

Black

Blue

Blue Gray

Blue White

Bright Green

Brown

Buttontext

Canvas

Dark Blue

Dark Green

Dark Green

Dark Red

Dark Rose

Dark Tan

Dark Teal

Dark Yellow

Dirty White

Forrest green

Gold

Gray-25

Gray-40

Gray-50

Gray-80

Green White

Indigo

Lavendar

Light Blue

Light Green

Light Orange

Light Tan

Light Turquoise

Light Yellow

Lime

Off White

Olive Green

Orange

Pale Blue

Pale Yellow

Pink

Pink White

Plum

Red

Rose

Sea Green

Sky Blue

Tan

Teal

Turquoise

Violet

White

Win3D

Winback

Wintext

Yellow

Yellow White

Color_Code

The RGB code for the color in the format "#R,G,B", where R, G and B are integers between 0 and 255.

Description

SET_BRUSH() sets the fill color of any of the functions that draw an enclosed area, such as  RECT()and OVAL(). [Picture]

Supported By

Alpha Five Version 5 and Above

Limitations

Used only in the Code sections of UI_BITMAP_DRAW(), UI_SCREEN_DRAW(), and UI_PRINTER_DRAW().

Example

ui_bitmap_create("test",4,4)

ui_bitmap_draw("test",<<%code%

inner_Rect(0,0,4,4)

set_pen("black")

set_brush("blue")

inner_pie(2, 2, 1.5, 60, 0, .2)

set_brush("red")

inner_pie(2, 2, 1.5, 45, 60, 0)

set_brush("green")

inner_pie(2, 2, 1.5, 90, 105, 0)

set_brush("lavendar")

inner_pie(2, 2, 1.5, 165, 195, 0)

set_font("Verdana,12,b", "Black", "Lavendar")

text("West", 1.75, 1)

set_font("Verdana,12,b", "Black", "green")

text("East", 1, 2.25)

set_font("Verdana,12,b", "Black", "red")

text("South", 1.85, 3)

set_font("Verdana,12,b", "Yellow", "blue")

text("North", 2.75, 2.45)

%code%)

ui_dlg_box("","{image=test}")

See Also

Bitmap and Graphic Functions