If Angle > 2 * cPI Then
Angle = 0
LineColor = Colors.RGB(Rnd(50, 250), Rnd(50, 250), Rnd(50, 250))
'below 4 lines added by Mahares
Timer1.Enabled = False
Log("Finished full rotation")
btnStartStop.Text = "Start"
btnStartStop.SetColorAndBorder(0xFF006400, 1dip, 0xFF90EE90, 5dip)
End If