// Creates a simple Velocimeter
vel.pointerColor = Color.GREEN;
add(vel, CENTER, CENTER, PARENTSIZE + 50, PARENTSIZE + 50);
// Generates an event from the timer
public void onEvent(Event e)
if (e.type == TimerEvent.TRIGGERED && tt.triggered)
if (vel.value > vel.max + 20)
vel.value = vel.min - 20;