brush
Entity: predicate and function

window_brush
Entity: predicate


Usage:
brush(Color)
brush(Color, shape(Type))
Brush is brush(Color)
Brush is brush2(Color, Type)

Usage:
window_brush(Window, Color)
window_brush(Window, Color, shape(Type))

Gets/sets the current filling color.
 
Window window or control handle, use _ (underscore) for default or current window 
Color  integer containing a color, you can use rgb to create such integer.
Type h Horizontal;

 (-) Horizontal;

 v Vertical;

 ! Vertical;

 x Diagonal cross;

 (\) Diagonal
(+) Cross; 

(/) Diagonal;

Example:

?-window( _, _, win_func(_), "Brush Demo", 100, 100, 200, 200).

win_func(paint):-
  brush(rgb(255,0,0)), rect(0,50,200,150),
  brush(rgb(0,0,255)), rect(50,0,150,200).

See also:

pen
color_text
color_text_back