pic-12.html

[ prev | next | top ]

## 12. Style Variables

There are a number of global style variables in pic that can be used to change its overall behavior. We’ve mentioned several of them in previous sections. They’re all described here. For each variable, the default is given.

Any of these variables can be set with a simple assignment statement. For example:

F i g u r e 1 2 - 1 : b o x h t = 1 ; b o x w i d = 0 . 3 ; m o v e w i d = 0 . 2 ; b o x ; m o v e ; b o x ; m o v e ; b o x ; m o v e ; b o x ;

In GNU pic, setting the scale variable re-scales all size-related state variables so that their values remain equivalent in the new units.

The command reset resets all style variables to their defaults. You can give it a list of variable names as arguments (optionally separated by commas), in which case it resets only those.

State variables retain their values across pictures until reset.

[ prev | next | top ]