Improved my small Gradient Ball drawing SUB - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Programs (https://qb64phoenix.com/forum/forumdisplay.php?fid=7) +---- Thread: Improved my small Gradient Ball drawing SUB (/showthread.php?tid=1838) |
Improved my small Gradient Ball drawing SUB - Dav - 07-11-2023 I use a small gradient ball SUB in various programs. It had a flaw however - large balls with dark color values would have think back edges. Made a new version to fix that. Just thought I'd share it here. If you have one too, please share it - I'd love to see what other people are using. And if you see a way to improve mine please post it. Thanks! - Dav Code: (Select All)
RE: Improved my small Gradient Ball drawing SUB - CharlieJV - 07-11-2023 That's good stuff. Thanks for sharing! BAM Version (I had to do some tweaking to get that working): RE: Improved my small Gradient Ball drawing SUB - bplus - 07-11-2023 My DrawBalls were improved by OldMoses Sin even smallest!!! Code: (Select All) dh = _DesktopHeight * .85 RE: Improved my small Gradient Ball drawing SUB - Dav - 07-11-2023 Cool! That's a slick way. Looks good. - Dav RE: Improved my small Gradient Ball drawing SUB - Dav - 07-11-2023 Hey CharlieJV, Sorry I didn’t see your post up there before. Thanks. BAM s awesome! - Dav RE: Improved my small Gradient Ball drawing SUB - mnrvovrfc - 07-11-2023 Dav, nice program and with bplus' changes too. I modified it so it stopped with _KEYDOWN(27). Also changed so the radius varied from 5 to 10 inclusive. Maybe if it could be changed so the colors were yellowish or orangish in the majority, with a couple of red, blue and green balls, they would begin to look like a lumpy cluster of stars. RE: Improved my small Gradient Ball drawing SUB - Dav - 07-11-2023 Thanks, mnrvovrfc. Here's another version I played around with today, using SQR + PSET. Added transparency. Small, but slower though. - Dav Code: (Select All)
RE: Improved my small Gradient Ball drawing SUB - CharlieJV - 07-11-2023 (07-11-2023, 04:44 AM)CharlieJV Wrote: That's good stuff. Thanks for sharing! Alternative BAM version by ZXDUNNY, using SIN-based gradient instead of linear: RE: Improved my small Gradient Ball drawing SUB - CharlieJV - 07-11-2023 And scrolling gradiant balls: Yeah, dropped the resolution a bit to keep decent performance. RE: Improved my small Gradient Ball drawing SUB - CharlieJV - 07-11-2023 (07-11-2023, 12:35 PM)Dav Wrote: [...] Hey, thanks. For a browser-based little guy, I'm pretty pleased with it so far. Loads to do, which I don't mind 'cause it is a whole ton of fun marrying BASIC and TiddlyWiki. |