14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix A JSL Syntax Reference 625<br />

Graphic Functions<br />

Pen Color(n)<br />

Description<br />

Sets the color used for the pen.<br />

Pen Size(n)<br />

Description<br />

Sets the thickness of the pen in pixels.<br />

Pie(x1, y1, x2, y2, startangle, endangle)<br />

Description<br />

Draws a filled pie slice. The two points describe a rectangle, within which is a virtual oval. Only the slice<br />

described by the start and end angles is drawn.<br />

Pixel Line To(x, y)<br />

Description<br />

Draws a one-pixel-wide line from the current pixel location to the location given in pixel coordinates. Set<br />

the current pixel location using the Pixel Origin and Pixel Move To commands.<br />

Pixel Move To(x, y)<br />

Description<br />

Moves the current pixel location to a new location given in pixel coordinates.<br />

Pixel Origin(x, y)<br />

Description<br />

Sets the origin, in graph coordinates, for subsequent Pixel Line To or Pixel Move To commands.<br />

Polygon({x1, y1}, {x2, y2}, ...)<br />

Polygon(xmatrix, ymatrix)<br />

Description<br />

Draws a filled polygon defined by the listed points.<br />

Rect(x1, y1, x2, y2, )<br />

Rect({x1, y1}, {x2, y2}, )<br />

Description<br />

Draws a rectangle whose diagonal has the coordinates (x1, y1) and (x2, y2). Fill is Boolean. If fill is<br />

0, the rectangle is empty. If fill is nonzero, the rectangle is filled with the current fill color. The default<br />

value for fill is 0.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!