ProgressCircleV2

Share your advanced PureBasic knowledge/code with the community.
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

ProgressCircleV2

Post by dagcrack »

After wanting this for quite some time and watching a similar thing going on this very same forums, I thought I'd give it a go and share with you guys after all this time of not showing up (for good? :lol: )

Image

Source can be found in here:
http://gushh.net/src.php?file=PB/Progre ... eV2_Src.pb (permalink)
(god I hate vhosts without rewrite rules).

Some of the comments in the source are valid excuses for not spending more time on this, but truth is I don't really have a choice.

If anyone finds this useful, please continue its development and share with us. Right now it's just a demo of the render function and it's not optimized at all, in fact, I would rather not use this until an AA circle raster is available (either from me or others) but oh well, sometimes you have to work with what you're given.

Tested on Win 9x and XP, runs just fine. Little hoggy the demo though. I guess a Sin&Cos LUT could be used, if available. But the real bottleneck lies in the image creation and resizing here.

Time to go back to the shadows, I guess.

Cheers.


PS: What's new on PB?

PS2: If you're planning to use this throughout an application (disable a panel and display a loading icon for instance, etc) Perhaps it would be a good idea to buffer a lower-quality version (fewer frames) and use this buffer of images to display the animation later on. You'll lay off the CPU but you'll be wasting some precious RAM though.
! Black holes are where God divided by zero !
My little blog!
(Not for the faint hearted!)
walker
Enthusiast
Enthusiast
Posts: 634
Joined: Wed May 05, 2004 4:04 pm
Location: Germany

Post by walker »

Hi dragcrack

nice to see you back with this nice gadget... It runs smooth on Linux too :D

I hope, more users will follow and release their goodies .. for the fame and glory of PB :cool:... and at least to take over the world :wink:
Post Reply