Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hocus Pocus Hardware Version
#2
This is a great effect, Terry.  Always liked it since you first posted it.  Music fits.  I thought wouldn't it be cool if it was dancing to the music somehow - so I played around with that.  

I set BLOOMAMOUNT to 20, and put a TIMER thing that changes the x/y position randomly on the screen every .46 seconds (instead of mouse movement) and it looks like it's popping to the music on time, on my slow laptop.  If would neat it it could really respond to the music somehow.

- Dav

Code: (Select All)

Dim t As Single: t = Timer
Do
    _Limit 60
    If Timer - t > .46 Then
        t = Timer
        Blooms = BLOOMAMOUNT
        While Blooms > 0
            HOCUS Rnd * _Width, Rnd * _Height '  a one-a , and-a...
            HOCUS Rnd * _Width, Rnd * _Height '  ...two-a...
            Blooms = Blooms - 1
        Wend
    End If
    POCUS
    _Display
Loop Until _KeyDown(27) '                            leave when ESC pressed

Find my programs here in Dav's QB64 Corner
Reply


Messages In This Thread
Hocus Pocus Hardware Version - by TerryRitchie - 09-18-2023, 04:32 PM
RE: Hocus Pocus Hardware Version - by Dav - 09-18-2023, 05:50 PM
RE: Hocus Pocus Hardware Version - by bplus - 09-18-2023, 06:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Demo: Adaptable Hardware Grid Pete 1 202 02-01-2026, 08:16 PM
Last Post: grymmjack
  Spaghetti and Meatballs bplus version bplus 5 431 01-03-2026, 08:57 PM
Last Post: Pete
  Christmas Screen Saver (Hardware Accelerated) dcoterel 2 344 12-27-2025, 06:25 PM
Last Post: bplus
  Why Pete Likes Hardware Acceleration - Popup Demo Pete 6 654 11-26-2025, 09:02 PM
Last Post: Pete
  Pseudo-fractal - interactive version hsiangch_ong 3 919 02-06-2025, 09:20 AM
Last Post: SMcNeill

Forum Jump:


Users browsing this thread: 1 Guest(s)