Here is a simple colour-cycle effect which produces nice visual eye candy. Especially on the Galaxy's Super-Amoled screen
' Colour blaze - Jim Brown - v1.0
' NOTE: Uses the "Phone" library
Sub Process_Globals
Dim col As List
Dim rDir,gDir,bDir As Int
Dim time As Timer
Dim awake As PhoneWakeState
End Sub
Sub Globals
' display-related variables
Dim can As Canvas
Dim rec As Rect
Dim cx,cy As Int
End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime=True Then
' set inital colours
col.Initialize
For n=1 To 28
col.Add(Colors.RGB(n*2,0,n*4))
Next
rDir=Rnd(1,4) : gDir=Rnd(1,4) : bDir=Rnd(1,4)
End If
can.Initialize(Activity)...