HOW TO CREATE AN ARRAY OF CANVAS

Peer support for Air Manager desktop users

Moderators: russ, Ralph

Post Reply
Message
Author
vfsintes
Posts: 19
Joined: Sat Apr 02, 2016 5:19 pm

HOW TO CREATE AN ARRAY OF CANVAS

#1 Post by vfsintes »

Dear Team,

I know how to create and handle an array of certain variables, but not canvas.
In this case is for TCAS, the classical tomb shape that is filled in with, yellow and red depending of the distance and altitude.
The question is the next one, I would like to do:

for i==0 to j do:

canvas..i = canvas_add(x, y, width, height, draw_callback)
then canvas will be filled, rotaed, moved, etc.

canvas_draw(canvas..i, draw_callback)

but I don't know how to create each canvas variable in a "for" loop and how to call them inside the loop.

j will be the number of airplanes around the plane from datarefs (INT value)


Thanks a lot.

Post Reply