Xbasic
SET_BRUSH Function
Syntax
SET_BRUSH( Color_Name as C )
SET_BRUSH( Color_Code as C )
Arguments
- Color_Name
A named Alpha Anywhere color. The following standard colors are provided in Alpha Anywhere.
- Aqua
Light Green
- Aqua White
Light Orange
- Black
Light Tan
- Blue
Light Turquoise
- Blue Gray
Light Yellow
- Blue White
Lime
- Bright Green
Off White
- Brown
Olive Green
- Buttontext
Orange
- Canvas
Pale Blue
- Dark Blue
Pale Yellow
- Dark Green
Pink
- Dark Green
Pink White
- Dark Red
Plum
- Dark Rose
Red
- Dark Tan
Rose
- Dark Teal
Sea Green
- Dark Yellow
Sky Blue
- Dirty White
Tan
- Forrest green
Teal
- Gold
Turquoise
- Gray-25
Violet
- Gray-40
White
- Gray-50
Win3D
- Gray-80
Winback
- Green White
Wintext
- Indigo
Yellow
- Lavendar
Yellow White
- Light Blue
- 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().
Example
ui_bitmap_create("test",4,4)
ui_bitmap_draw("test",
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}")Limitations
Used only in the Code sections of UI_BITMAP_DRAW(), UI_SCREEN_DRAW(), and UI_PRINTER_DRAW().
See Also