Code Examples
All the examples below can be found in the directory \examples of your installed MoSync package.
MoTrix
MoTrix is an advanced image drawing example which is fun to look at.
3D Lines
The 3D Lines example shows how to render to drawable images and then
draw them across the screen when you press the “Fire” button.
MoSketch
MoSketch is an Etch-A-Sketch analogue written in MoSync. The background
is gray. The pointer is white. Use the arrow keys to move the pointer
and draw a black polyline. Press 9 to clear the screen. Press 2 to
“lift” the pointer, or to put it back down. Press 0 (zero) to exit the
program. The sketch is saved to a permanent store automatically when
you exit the program. If a sketch has been saved, it will be loaded
automatically when you start the program. The MoSketch example
highlights usage of MoSync’s storage API and the exit notification.
