QB64 Phoenix Edition
Spawn of Cardioid - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: QBJS, BAM, and Other BASICs (https://qb64phoenix.com/forum/forumdisplay.php?fid=50)
+--- Thread: Spawn of Cardioid (/showthread.php?tid=1535)



Spawn of Cardioid - CharlieJV - 03-07-2023

A for the giggles mod of @bplushttps://qb64phoenix.com/forum/showthread.php?tid=1526&pid=14122#pid14122

After you open the link below to run the program:
  • to pause the action, click and hold (or touch and hold for touch device) on the program's window
  • to have a new random colour scheme, refresh the page

Spawn of Cardioid


RE: Spawn of Cardioid - bplus - 03-07-2023

@CharlieJV 

I noticed you didn't Share pR, pG, pB, cN. Are all the variables in BAM global because the Plasma effect shouldn't work unless they were or Shared.


RE: Spawn of Cardioid - CharlieJV - 03-07-2023

(03-07-2023, 03:02 AM)bplus Wrote: @CharlieJV 

I noticed you didn't Share pR, pG, pB, cN. Are all the variables in BAM global because the Plasma effect shouldn't work unless they were or Shared.

Yup, that aspect of wwwBASIC in BAM remains au natural.  Whatever variable is defined at the global level is available everywhere.


RE: Spawn of Cardioid - CharlieJV - 03-07-2023

BTW:

Left-click on the image causes the program to pause until left-click is released.

While left-clicking, a simultaneous right-click (or a right-click at any time) will bring up a browser's context menu for copying/saving an image.  While that context menu is up, it is a bit like a "click-lock", i.e. the program stays paused while that context menu is open.

Aside, the program can create some pretty interesting patterns of colour and texture:


[Image: image.png]