Original Author Paul Laughton, 2011
Page 178
De Re BASIC!
Gr.paint.reset {<nexp>}
Force the specified Paint to default settings:
Color opaque black (255, 0, 0, 0)
Antialias ON
Style FILL (0)
Minimum stroke width (0.0)
The parameter is optional. If the parameter is omitted or set to -1, a new current Paint is created with
default settings.
Rotate Commands
These commands put graphics objects on the Display List like the GR drawing commands, but they don't
draw anything. Instead they work as markers in the list. When the renderer sees the start marker, it
temporarily rotates its coordinate system. The end marker tells the renderer to restore the coordinate
system to normal.
The effect is to rotate or move any objects drawn after Gr.rotate.start and before Gr.rotate.end.
As with any graphics object, the rotate parameters may be changed with Gr.modify. At the next
Gr.render, the rotated objects will be redrawn in their new positions.
Gr.rotate.start angle, x, y{,<obj_nvar>}
Any objects drawn between the Gr.rotate.start and Gr.rotate.end will be rotated at the specified angle,
in degrees, around the specified (x,y) point. If the angle is positive, objects are rotated clockwise.
The optional <obj_nvar> will contain the Object list object number of the Gr.rotate.start object. If you
are going to use rotated objects in the array for Gr.NewDl then you will need to include the
Gr.rotate.start and Gr.rotate.end objects.
The Gr.modify parameters for Gr.rotate.start are "angle", "x" and "y".
Gr.rotate.start must be eventually followed by Gr.rotate.end or you will not get the expected results.
Gr.rotate.end {<obj_nvar>}
Ends the rotated drawing of objects. Objects created after this command will not be rotated.
The optional <obj_nvar> will contain the Object list object number of the Gr.rotate.end object. If you
are going to use rotated objects in the array for Gr.NewDl then you will need to include the
Gr.rotate.start and Gr.rotate.end objects.
Camera Commands
There are three ways to use the camera from BASIC!:
1)
The device's built in Camera User Interface can be used to capture an image. This method
provides access to all the image-capture features that you get when you execute the device's