SHIP:Sail:draw:Commands

From Serious Documentation
Jump to: navigation, search

See Also

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