.TURTLEPOINT

Syntax

.TURTLEPOINT [xvalue yvalue]

Explanation

.TURTLEPOINT allows use of the Windows graphics engine to draw in the Graphics window. Its input is a list of two integers describing a dot inside the Graphics window in pixel coordinates, where [0 0] is the upper left corner of the Graphics window. The output of .TURTLEPOINT is a list of two integers describing the same point in turtle coordinates with respect to the current window extent and coordinate system origin.

See also .WINDOWPOINT, .GETDC and .FREEDC.

Examples

? .TURTLEPOINT [0 0] ; upper left corner

Result: [-200 100]

? .WINDOWPOINT [-200 100]

Result: [0 0]

?