BB___PLACE

=PLACE= toc

Description
> In a graphics window or graphicbox, PLACE positions the pen at x y. When the pen is moved using, no line is drawn even if the pen is down.

> A similar command, goto also moves the pen but //does// draw a line when the pen is down.

Syntax
//This command is NOT case sensitive//. Using literal values: Using variable values: > x y are horiz and vert coords from upper left corner of window.
 * 1)  - in graphics window
 * 2)  - in graphicbox

Hints
Here is a list of commands that affect the pen position or status: down go goto home north place posxy set size turn up

Example
An example of the command in a graphics window. code format="lb" nomainwin WindowWidth=400 WindowHeight=300

open "Command Demo" for graphics_nsb_nf as #g #g "trapclose [quit]"

'put pen down #g "down" 'place pen at x=100 and y=100 and draw a box x=100 : y=100 #g "place "; x; " "; y   #g "box 150 150" wait

[quit] close #g end code

An example of the command in a graphicbox. code format="lb" nomainwin WindowWidth=400 WindowHeight=300

graphicbox #g.gb 2, 2, 390, 270 open "Command Demo" for graphics_nsb_nf as #g #g "trapclose [quit]"

'put pen down #g.gb "down" 'place pen #g.gb "place 100 100" #g.gb "box 150 150" #g.gb "\\Pen placed at 100 100" wait

[quit] close #g end code

Useful Functions
code format="lb" Place a useful function using this keyword here code