Not really, the midpoint circle algorithm is an algorithm used to determine the points needed for rasterizing a circle. Bresenham's circle algorithm is derived from the midpoint circle algorithm
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Oh yes. I guess that at some point I thought.. what is the point of all that complexity and I changed to simple the standard GLCD commands, but, the point is the use of TRIG...
I just came across it looking in gcb help. Does a trig circle "looks nicer??"
The current GLCD circle plots one quadrant and copies it to the other 3. I doubt the trig circle did that, just plotted the whole circle but haven't checked.
I like the trig "fun"ctions but the "fun" takes me back to school days cos after, I never used trig until I used gcb.
Just sin and cos can do dials and moving needle pointer like analogue dial... that's all I mentioned. I was trying to copy nextion displays but cheaper... and easier than using nextion gui ide.
trig not used much but glad it's there. Who needs Pi ? :)
I figured how to use gcb trig from using and got better at it. Looking at old files, I was rubbish at first but seemed to have progressed, I want to do the rotating line box my self.
Started but didn't finish. Just move 8 points and join them. Is easy really with basic :) not
Last edit: stan cartwright 2022-05-11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Demonstration program:
Not really, the midpoint circle algorithm is an algorithm used to determine the points needed for rasterizing a circle. Bresenham's circle algorithm is derived from the midpoint circle algorithm
Oh yes. I guess that at some point I thought.. what is the point of all that complexity and I changed to simple the standard GLCD commands, but, the point is the use of TRIG...
So, I have found the original post in the forum, corrected it, tested and update the the Help. https://github.com/GreatCowBASIC/Help/blob/main/source/trigonometrycircles.adoc
Good spot - I also found that you mentioned this... a few times.. So, apologies for not changing in the past.
I just came across it looking in gcb help. Does a trig circle "looks nicer??"
The current GLCD circle plots one quadrant and copies it to the other 3. I doubt the trig circle did that, just plotted the whole circle but haven't checked.
I like the trig "fun"ctions but the "fun" takes me back to school days cos after, I never used trig until I used gcb.
Just sin and cos can do dials and moving needle pointer like analogue dial... that's all I mentioned. I was trying to copy nextion displays but cheaper... and easier than using nextion gui ide.
trig not used much but glad it's there. Who needs Pi ? :)
I figured how to use gcb trig from using and got better at it. Looking at old files, I was rubbish at first but seemed to have progressed, I want to do the rotating line box my self.
Started but didn't finish. Just move 8 points and join them. Is easy really with basic :) not
Last edit: stan cartwright 2022-05-11