QBJS Rotating 4D cube - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1) +--- Forum: QBJS, BAM, and Other BASICs (https://staging.qb64phoenix.com/forumdisplay.php?fid=50) +--- Thread: QBJS Rotating 4D cube (/showthread.php?tid=1075) Pages:
1
2
|
QBJS Rotating 4D cube - vince - 11-08-2022 Code: (Select All) dim shared pi, p, q, d, z0, t, f, sw, sh RE: QBJS Rotating 4D cube - PhilOfPerth - 11-08-2022 I was curious about 4D, so I copy/pasted the code, but I get an error in line 41: illegal function call. Do I need another file? edit: I just noticed its a JS file, so I guess I'm not able to run it. RE: QBJS Rotating 4D cube - vince - 11-08-2022 Hi, Phil. Yes, the programs I intend to post here have only been tested in QBJS and use new high tech QBJS features. Since this program is mostly compatible with QB64PE I have modified the above post to be so, so feel free to try the above again RE: QBJS Rotating 4D cube - bplus - 11-08-2022 Before this line was missing the 32 Screen _NewImage(sw, sh, 32) Now it's there. RE: QBJS Rotating 4D cube - CharlieJV - 11-08-2022 [i]EDIT: OOPS, I had set my screen mode to 12, and that should have been 18. Correction made. The red color vince has in there adds a really nice touch.[/i] RE: QBJS Rotating 4D cube - vince - 11-08-2022 very nice, Charlie, thanks for the link. Suppose I wanted to write a wiki article on 4D geometry with various example codes, with BAM I could start tiddling my willy away with the tiddlywiki RE: QBJS Rotating 4D cube - CharlieJV - 11-08-2022 (11-08-2022, 03:33 AM)vince Wrote: very nice, Charlie, thanks for the link. You know, one can be as happy as the day is long, tiddling one's wiki, wiki-ing one's tiddly, and throwing in a willy for the trifecta ménage-à-trois, just remember to get proper rest and nutrition. Then again, to be here for a long time vs being here for a good time ... Giggles aside, seeing as your code essentially works as is, I figured a link to BAM export to run the program when it is so easy to do: what the hey. It is a really sharp program. Totally mesmerising. If I smoked the wacky tabacky, I'd have a doobie goin' while watching that animation, man. EDIT: OOPS, I had set my screen mode to 12, and that should have been 18. Correction made. The red color vince has in there adds a really nice touch. RE: QBJS Rotating 4D cube - PhilOfPerth - 11-08-2022 (11-08-2022, 03:13 AM)vince Wrote: Hi, Phil. Yes, the programs I intend to post here have only been tested in QBJS and use new high tech QBJS features. Oh wow! Looks beautiful Vince! Looks so simple, too! I'm not game to even look at QBJS, although I did start on Javascript a while back... I guess that's what the JS refers to? RE: QBJS Rotating 4D cube - bplus - 11-08-2022 vince on a roll at a few forums! Nice translation Charlie! (I suspect it wasn't hard, vince code is pretty Basic!) RE: QBJS Rotating 4D cube - CharlieJV - 11-08-2022 (11-08-2022, 06:12 PM)bplus Wrote: vince on a roll at a few forums! All vince's original, and quite awesome, code. The only required change for BAM: add a subroutine declaration at the top.
Me just being fussy: changed the third parameter on _NEWIMAGE. EDIT: OOPS, I had set my screen mode to 12, and that should have been 18. Correction made. The red color vince has in there adds a really nice touch. |