Yay, I sufficiently finished my list enough to code again.
Both routines work great! I added a 40ms delay between pixels and that's exactly what I want!
Now to dissect it to figure out what makes the code tick, then put it in my sonar program.
Y'all great. Thanks alot!
Text and 2D graphics window
Re: Text and 2D graphics window
Ok, hopefully an intelligent question:
How are the ShowForm() and DrawArc() procedures any different from a GOSUB??
How are the ShowForm() and DrawArc() procedures any different from a GOSUB??
-
IdeasVacuum
- Always Here

- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: Text and 2D graphics window
...its a very (very very) long time since I used a language that had a GOSUB function. Still, for all intents and purposes, the principle is the same. Subroutines and Procedures allow you to define your code in a logical way such that the code does not have to be executed sequentially from start to finish. For me, even if a Procedure will only ever be called once, it is still a good way to organise the code - effectively, a collection of 'mini programs'. I find it much easier to perfect several 'mini programs' than it is to work on one 'giant'. If a task is repeated, with perhaps a few values being changed, then a Procedure is the obvious way to go.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
