BB___NORTH

=NORTH= toc

Description
> In a graphics window or graphicbox, NORTH sets the pen position to straight up, which is normally North on a map. But, NORTH is not 0 degrees; it is 270 degrees with this command. Pointing right, or east, is 0 degrees. Pointing down, south, is 90 degrees. Pointing left, or west, is 180 degrees. The pen points North by default. See example.

> To change the pen direction, use the command.

Syntax
//This command is NOT case sensitive//.
 * 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 showing the pen points north by default. 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; home" #g "go 50" 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 'by default, pen is pointing up (north) #g.gb "down; home" 'turn pen #g.gb "turn 90" #g.gb "go 100" #g.gb "north; go 50" wait

[quit] close #g end code

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