Spining spiral wheel - 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: Spining spiral wheel (/showthread.php?tid=1989) |
Spining spiral wheel - Dav - 09-11-2023 Played around with some spiral pattern code using sin/cos to plot the points. Gave it some spinning wheel movement using Timer. Got it working in QBJS. Press ENTER to make a new wheel. Here it is. - Dav RE: Spining spiral wheel - grymmjack - 09-11-2023 (09-11-2023, 04:34 PM)Dav Wrote: Played around with some spiral pattern code using sin/cos to plot the points. Gave it some spinning wheel movement using Timer. Got it working in QBJS. Press ENTER to make a new wheel. Here it is. That is cool. At one point it becomes almost 3D. RE: Spining spiral wheel - Dav - 09-11-2023 Yeah it does kind of. If you play with the SIN/COS values you can make it spin differently and make it look more 3d. By the way, @dbox, making this one I noticed QBJS doesn't add a space at the end when printing number variables like Qbasic/QB64 always does. Not that it's bad or anything, just want to point out there's a difference there. Personally I like the way QBJS does it, but for compatibility you may want to mimic the QB behavior? I see it does add the leading space like QB does it. Example code: points = 19: Print points; "points"; That will print out " 19 points" in Qbasic/QB64, but " 19points" in QBJS. - Dav RE: Spining spiral wheel - dbox - 09-11-2023 Thanks @Dav, I don't think I ever noticed the trailing space. Fix ticket created: https://github.com/boxgaming/qbjs/issues/84 RE: Spining spiral wheel - CharlieJV - 09-25-2023 (09-11-2023, 04:34 PM)Dav Wrote: Played around with some spiral pattern code using sin/cos to plot the points. Gave it some spinning wheel movement using Timer. Got it working in QBJS. Press ENTER to make a new wheel. Here it is. Hey, thanks for sharing that. Very cool. BAM version |