BB___SIZE

=SIZE= toc

Description
> In graphics windows and graphicboxes, SIZE sets the size of the pen in pixels. By default, the pen is set to size 1. The pen size controls the width of drawn lines and shape outlines.

Syntax
//This command is NOT case sensitive//. Using a literal number: Using a variable number: > S is a number of 1 or more pixel width.
 * 1)  - a graphics window
 * 2)  - a 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]"

'place pen then put it down #g "goto 100 100; down" 'set pen size #g "size 3" 'draw a box #g "box 200 200" 'reset pen size and do some fun stuff #g "size 1" #g "up; goto 100 100; down; goto 300 30; goto 200 100" #g "up; goto 200 200; down; goto 300 30" wait

[quit] close #g end code

An example of the command in a graphicbox using variable values. 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; home" 'set pen size pS=5 'set radius of circle r=100 for i = 1 to 4 #g.gb "size "; pS       'draw a circle #g.gb "circle "; r       r=r-2*pS pS=pS-1 next i   wait

[quit] close #g end code

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