Small Basic - Traffic Light Challenge
One of this month's forum challenges was to create a traffic light system.
Graphics Challenge 2
Draw a traffic light that changes through the correct lighting sequence, perhaps using the Timer object.
We have 2 great answers in, the first by Martin from Germany.
And the second by NaochanOn from Japan which uses different coloured lights.
You can view them in action (as well as see the source code) using SIlverLight with the following links:
https://smallbasic.com/smallbasic.com/program/?MNZ607
https://smallbasic.com/smallbasic.com/program/?KZP715
Note that you can host any of your Small Basic programs online in this way after it is published and you have the 6 character ID.
Comments
Anonymous
September 06, 2014
Very cool! I was also marveling at these solutions, and how quickly Martin and NaochanON developed them!Anonymous
September 06, 2014
The comment has been removedAnonymous
September 06, 2014
And another clever one by electroluis: smallbasic.com/.../programAnonymous
September 10, 2014
Thanks for sharing.