Hi everybody
I’m starting using Corona and Lua to develope apps. Before that I used processing but it could only program apps for android and I wanted more than that, so I chose corona for this
Since I started I had some doubts on how corona organized their animated interface and searching the manuals I read:
“The basic drawing model involves a cycle of executing Lua code and
rendering objects in the display hierarchy. During this cycle, the
screen only updates when objects in the display change. These changes
occur by adding, removing, or changing properties of the child display
objects.” (http://docs.coronalabs.com/guide/media/displayObjects/index.html)
So I thought a code like this:
R = math.random(0,100) G = math.random(0,100) B = math.random(0,100) display.newText("Test",50,50,"Arial",60):setFillColor(R,G,B)
Should change the color every frame, and this doesn’t happens. Why? And how could do something similar ?