Author Topic: Canvases  (Read 6856 times)

Malkom

  • Administrator
  • Sr. Member
  • *****
  • Posts: 289
Canvases
« on: May 11, 2012, 07:23:35 AM »
CANVASES

Canvases are controls that can be placed onto a card using the Toolbar.
They are very flexible and can be drawn on, have images loaded onto them and can receive touch events.


CANVAS CREATION AND PLACEMENT

To place a canvas on a card:-

1) Select the canvas icon on the Toolbar - its icon looks like a mountain scene

2) Press the New Canvas button on the Toolbar

3) To place the canvas just touch the card and the canvas should appear under the mouse.

4) Canvas properties such as size and its script can be changed via the Toolbar/Editor.


CANVAS COLORING

To clear a canvas or set its color the CanvasClear command can be used.
The CanvasClear command clears the whole canvas to the specified color.

Code: [Select]
@ Clear canvas 5 to Bright Green
CanvasClear(5,0,255,0)

Note, colors have three components:- red, green and blue
Their values range from 0 (darkest) to 255(brightest)




I am sorry but I do not have time to answer questions by PM or email.
If you post your questions in this forum then it might help others.