Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
xrects
draw or fill a set of rectangles
Calling Sequence
xrects(rects,[fill])
Arguments
- rects
matrix of size (4,n).
- fill
vector of size n.
Description
xrects
draws or fills a set of rectangles.
Each column of rects
describes
a rectangle (upper-left point, width, height) in user coordinates:
rects=[x1 y1 w1 h1;x2 y2 w2 h2;...]'
.
fill(i)
gives the pattern to use for filling or drawing rectangle i:
if fill(i)<0
, rectangle i
is drawn using the line style (or
color) -fill(i)
if fill(i)>0
, rectangle i
is filled using the pattern (or
color) fill(i)
if fill(i)=0
, rectangle i
is drawn using the current
line style (or color).
WARNING: please note that height is positive downwards.
Examples
Authors
J.Ph.C.
<< xrect | geometric_shapes | handle >> |