Author Topic: Fast filled circles routine  (Read 5603 times)

0 Members and 1 Guest are viewing this topic.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3820
  • Rating: +80/-8
    • View Profile
Re: Fast filled circles routine
« Reply #15 on: June 16, 2014, 03:23:33 pm »
Yeah that's great. I'm not exactly sure how much we'll be blown by native code on this platform.
send it

Offline cyrille

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 8
  • Rating: +0/-0
    • View Profile
Re: Fast filled circles routine
« Reply #16 on: June 24, 2014, 02:02:16 am »

[quoteJBy the way, the S, 0, 359, 10 part can be changed to stuff like S, 0, 359, 20 for faster, but lower quality circle. Don't set the last number too high, else it looks weird.

the 20 should be based on the radius... the larger the radius, the more segments you need to draw...

Also, in the case of your circle fade out, instead of using multiple graphics and blits, you could try creating one single polygon of the type:
0,0,   319,0,   319, 239  160, 239,    190, bottom of circle,    circle....   190, bottom of circle,    160, 239    0, 239
This would allow you do to the animation without any extra graphics...

If this does not work well (unpainted pixels), try spliting it in 2 halfs. the right and left half of the screen... might work better..

The reason why in your program it asks you which function to run is because you have multiple EXPORTED functions in your program (FILLPOLY in this case)... remove the EXPORT in front of FILLPOLY and it will not ask you again.


Offline DJ Omnimaga

  • Now active at
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55821
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Fast filled circles routine
« Reply #17 on: June 24, 2014, 02:42:24 am »
Ok thanks for the info :)

EDIT: Ok I removed the EVAL commands now and yes they weren't needed after all.
« Last Edit: June 24, 2014, 03:15:12 pm by DJ Omnimaga »
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at