.WINDOWPOINT

Syntax

.WINDOWPOINT [xvalue yvalue]

Explanation

.WINDOWPOINT 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 turtle coordinates with respect to the current window extent and coordinate system origin. The output of .WINDOWPOINT is a list of two integers describing the same point in pixel coordinates, where [0 0] is the upper left corner of the Graphics window.

See also .TURTLEPOINT, .GETDC and .FREEDC.

Examples

? .TURTLEPOINT [0 0] ; upper left corner

Result: [-200 100]

? .WINDOWPOINT [-200 100]

Result: [0 0]

?