I know that you can use Circle(, but does anyone have a basic code that can do it?
Umm... Not really, however..

Circle(X,Y,R,{i

That draws them really, really fast Very Happy
I knews that Very Happy
But I want to make a circle shader, but I have no idea how to make a circle.
tifreak8x wrote:
Umm... Not really, however..

Circle(X,Y,R,{i

That draws them really, really fast Very Happy


ZOMG SORCERY.

Accessed through Math, right?

And by the way, why does this work?
Reapex wrote:
I knews that Very Happy
But I want to make a circle shader, but I have no idea how to make a circle.


Well, you could just calculate the coordinates for a line originating from the center of the circle and draw a line from there to the inverse of it, then increase the angle every cycle.

Yes, I'm aware this would take several weeks.

Yes, I'm aware this is a terrible idea.

I'll show myself the door.
That's kind of the thing I am trying to find out.
And I believe that {i} triggers a "fast circle drawing flag".
Yeah, it does set it.

Aeromax, next time you wish to add more to a topic, please utilize the edit button, if the post is less than 12 hours old. Just a bit of advice before someone chews you out for it..
You're welcome to take a look at my Bresenham circle program, based on an algorithm that Kllrnohj discovered elsewhere.

http://www.ticalc.org/archives/files/fileinfo/388/38809.html
Reapex wrote:
I knews that Very Happy
But I want to make a circle shader, but I have no idea how to make a circle.


Unless you're trying to write one from scratch, something like this should work:

"sqrt(9-X^2->Y1
Shade(-Y1,Y1,-3,3

(where here 3 is the radius, and 9 is the radius squared)
http://en.wikipedia.org/wiki/Midpoint_circle_algorithm
Just to nitpick, what's wrong with:


Code:
"sqrt(9-X^2
Shade("-"+Ans,Ans,-3,3


It's been a while since I tried anything like this, so that's highly likely to be invalid.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement