Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spining spiral wheel
#1
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


Find my programs here in Dav's QB64 Corner
Reply
#2
(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.

- Dav

That is cool. At one point it becomes almost 3D. Smile
grymmjack (gj!)
GitHubYouTube | Soundcloud | 16colo.rs
Reply
#3
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

Find my programs here in Dav's QB64 Corner
Reply
#4
Thanks @Dav, I don't think I ever noticed the trailing space.

Fix ticket created:  https://github.com/boxgaming/qbjs/issues/84
Reply
#5
(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.

- Dav

[...]

Hey, thanks for sharing that.  Very cool.

BAM version
Reply




Users browsing this thread: 1 Guest(s)