A Little Challenge: Spin the Circle - 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: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10) +---- Thread: A Little Challenge: Spin the Circle (/showthread.php?tid=3021) |
RE: A Little Challenge: Spin the Circle - NakedApe - 09-11-2024 (09-11-2024, 01:18 PM)bplus Wrote: Ah fresh morning, fresh mind! By George, @bplus, you've done it. Nice morning thinking! I got my version down to one loop, but without the smoothness of assigning aspect values! +1 EDIT: And since you're on a roll, how would you mod it to work horizontally? Aspect values from 0.000001 to 1? Thnx! EDIT2: Nevermind. I see you already added a note about that! You're way ahead of me. RE: A Little Challenge: Spin the Circle - NakedApe - 09-12-2024 And in case you're not looking for normalized, buttery-smooth spinning like the above by @bplus, here's a wobbly version that I boiled down from my original post. Code: (Select All)
RE: A Little Challenge: Spin the Circle - bplus - 09-12-2024 +1 @NakedApe less LOC than bplus, I wonder if Steve will give it a go? Thanks to the guys adding coin flipping, I made a little game instigated by this thread The genius who finally tried out Rotozoom had some fun! https://qb64phoenix.com/forum/showthread.php?tid=184&pid=28301#pid28301 RE: A Little Challenge: Spin the Circle - SMcNeill - 09-12-2024 (09-12-2024, 07:04 PM)bplus Wrote: +1 @NakedApe less LOC than bplus, I wonder if Steve will give it a go? Steve getting busy with life once again as we roll back into the fall season. If you could just find me an extra fifteen hours in each day, I'd be giving all sorts of things a try that I keep seeing folks do here on the forums. RE: A Little Challenge: Spin the Circle - bplus - 09-12-2024 excuses excuses I think you will be gaining an hour this fall. @NakedApe this can be combined to one line: Code: (Select All) If _KeyDown(27) Then System Loop Until _keydown(27) ' don't need system when trying to beat Steve in less LOC RE: A Little Challenge: Spin the Circle - SMcNeill - 09-12-2024 (09-12-2024, 07:15 PM)bplus Wrote: excuses excuses I think you will be gaining an hour this fall. I can drop it down to 22 LOC, without much effort. How's this look for you: Code: (Select All)
RE: A Little Challenge: Spin the Circle - SMcNeill - 09-12-2024 How about this version, if we're shooting for Lines of Code: Code: (Select All)
RE: A Little Challenge: Spin the Circle - bplus - 09-12-2024 +1 @SMcNeill See you have time must have barrowed on that xtra hour coming up. RE: A Little Challenge: Spin the Circle - SMcNeill - 09-12-2024 (09-12-2024, 07:54 PM)bplus Wrote: +1 @SMcNeill See you have time must have barrowed on that xtra hour c0oming up. Aye, just doing some quick messing around to keep the brain sharp while my food is baking in the oven. RE: A Little Challenge: Spin the Circle - NakedApe - 09-12-2024 Dang, nice work @SMcNeill and @bplus... Now I'm scared I'm actually learning things from you guys. |