fill_polygon
Entity: predicate
Usage:
line(X1, Y1, X2, Y2, ... , Xn, Yn)
Draws a line from X1,Y1 to Xn,Yn using the current pen
.
fill_polygon(X1, Y1, X2, Y2, ... , Xn, Yn)
Draws a polygon using the points from X1,Y1 to Xn,Yn with the current pen and fills it with the current brush.
All these predicates fail if any of their arguments is not a number.
Example:
?-window( _, _, win_func(_), "Line demo", 100, 100, 300, 300).
win_func(paint):-
pen(2,rgb(255,0,0)),
brush(rgb(0,0,255)),
fill_polygon(0,0,200,200,0,100+100),
line(0,0,200,0,200,100+100).
See also: