Back Previous Next


Linguist graphics package - draw

Syntax:

   draw line in {actor} from {x1} {y1} to {x2} {y2}
   draw [filled] rectangle in {actor} at {x} {y} size {dx} {dy}

Keyword handler:

   linguist.graphics.keyword.GKDraw.class

Runtime handler(s):

   linguist.graphics.handler.GHDrawLine.class
   linguist.graphics.handler.GHDrawRect.class
   linguist.graphics.handler.GHFillRect.class

Function:

Draws a geometric shape using an actor for position and layer reference. The position of the drawn item on the screen will be relative to the left and top of the actor.

These commands can only be called from within an on draw statement block; attempting to use them at any other time will cause unpredictable results since no suitable drawing context will be available.

Example(s):

   draw line in Panel from 0 40 to 20 125
   draw rectangle in Plane2 at 45 203 size 30 50


Back Previous Next