Posts: 713
Threads: 117
Joined: Apr 2022
Reputation:
104
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
Posts: 713
Threads: 117
Joined: Apr 2022
Reputation:
104
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