User Guide

Table of Contents
Effect on Code Execution......................................................................................................................................................................108
Scheduling Events..............................................................................................................................................................................................109
Scheduling an Event..............................................................................................................................................................................109
Sending to an Input................................................................................................................................................................................109
Scheduling Methods...............................................................................................................................................................................110
Clearing Events......................................................................................................................................................................................110
Clock Accuracy.......................................................................................................................................................................................110
Ruby Values........................................................................................................................................................................................................111
The Ruby Value Type.............................................................................................................................................................................111
Passing Ruby Values.............................................................................................................................................................................111
Persistence.........................................................................................................................................................................................................113
User State Management........................................................................................................................................................................113
Debugging...........................................................................................................................................................................................................115
Error Reporting.......................................................................................................................................................................................115
The watch Method..................................................................................................................................................................................115
Drawing...............................................................................................................................................................................................................117
The draw Method...................................................................................................................................................................................117
Drawing Classes and Methods..............................................................................................................................................................117
Pens, Brushes & Colors.........................................................................................................................................................................118
Basic Shapes.........................................................................................................................................................................................119
Lines and Curves...................................................................................................................................................................................119
Graphics Paths......................................................................................................................................................................................120
Text.........................................................................................................................................................................................................122
Bitmaps..................................................................................................................................................................................................124
Redraw...................................................................................................................................................................................................126
Clipping..................................................................................................................................................................................................126
Smoothing..............................................................................................................................................................................................127
View Properties......................................................................................................................................................................................127
Changing The View................................................................................................................................................................................128
Advanced Brushes..............................................................................................................................................................................................129
Linear Gradients....................................................................................................................................................................................129
Path Gradients.......................................................................................................................................................................................132
Hatch Brushes.......................................................................................................................................................................................137
Texture Brushes.....................................................................................................................................................................................139
Advanced Pens...................................................................................................................................................................................................141
vi