Difference between revisions of "SHIP:Sail:draw:Commands"

From Serious Documentation
Jump to: navigation, search
(Created page with "== See Also == *Node Home *All Data Types == {{DataType|Draw_Commands}} == <onlyinclude>Commands used in {{SailFunc|draw}} function in SHIP....")
 
Line 16: Line 16:
 
|PENRESET||||pen up, back to 0,0 and a 0 degree orientation
 
|PENRESET||||pen up, back to 0,0 and a 0 degree orientation
 
|-
 
|-
|PENSTYLE||WIP||WIP
+
|PENSTYLE||WIP||Currently not implemented
 
|-
 
|-
|PENWIDTH||WIP||WIP
+
|PENWIDTH||WIP||Currently not implemented
 
|-
 
|-
 
|PENDOWN||{{DataType|Boolean}} penDown||puts the pen down (if true) or up (if false)
 
|PENDOWN||{{DataType|Boolean}} penDown||puts the pen down (if true) or up (if false)
Line 48: Line 48:
 
|ROTATEABS||{{DataType|Float}} orientation||rotate the pen orientation to the absolute orientation indicated
 
|ROTATEABS||{{DataType|Float}} orientation||rotate the pen orientation to the absolute orientation indicated
 
|-
 
|-
|POLYFILL||WIP||WIP
+
|POLYFILL||WIP||Currently not implemented
 
|-
 
|-
|POLYLINE||WIP||WIP
+
|POLYLINE||WIP||Currently not implemented
 
|-
 
|-
|TEXT||WIP||WIP
+
|TEXT||WIP||Currently not implemented
 
|-
 
|-
|TEXTSIZE||WIP||WIP
+
|TEXTSIZE||WIP||Currently not implemented
 
|-
 
|-
|RECTFILL||WIP||WIP
+
|RECTFILL||WIP||Currently not implemented
 
|}</onlyinclude>
 
|}</onlyinclude>
  
 
== Examples ==
 
== Examples ==

Revision as of 10:31, 13 October 2016

See Also

Draw_Commands

Commands used in draw function in SHIP.

Command Arguments Description
RESET resets the canvas, does not clear, but puts the pen up and at 0,0 in the 0 degree orientation;
CLEAR Color clrColor clears the canvas to a given color
PENRESET pen up, back to 0,0 and a 0 degree orientation
PENSTYLE WIP Currently not implemented
PENWIDTH WIP Currently not implemented
PENDOWN Boolean penDown puts the pen down (if true) or up (if false)
PENCOLOR Color penColor sets the pen color
SHIFTX Dimension horDirection shifts the contents of the canvas in the horizontal direction
SHIFTXY Dimension x, Dimension y shifts the contents of the canvas
SHIFTY Dimension verDirection shifts the contents of the canvas in the vertical direction
MOVE Float nPixles move the pen forward from the current location in the current direction by the specified number of pixels
MOVEX Float nPixels move the pen from the current location in the x direction by the specified number of pixels
MOVEXY Float xPixels, Float yPixels move the pen from the current location in the x and y direction by the specified number of pixels
MOVEY Float nPixels move the pen from the current location in the y direction by the specified number of pixels
MOVEABSX Float xCoord move the pen's x coordinate to the absolute location indicated
MOVEABSXY Float xCoord, Float yCoord move the pen's x and y coordinates to the absolute location indicated
MOVEABSY Float yCoord move the pen's y coordinate to the absolute location indicated
ROTATE Float orientation rotate the pen orientation from the current orientation by the indicated amount
ROTATEABS Float orientation rotate the pen orientation to the absolute orientation indicated
POLYFILL WIP Currently not implemented
POLYLINE WIP Currently not implemented
TEXT WIP Currently not implemented
TEXTSIZE WIP Currently not implemented
RECTFILL WIP Currently not implemented

Examples