Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
time tunnel animation - can this be done as high res and smooth as the video?
#38
Now some curve for the tunnel:
Code: (Select All)
_Title "Time Tunnel 5" ' bplus 2024-09-21
Screen _NewImage(600, 600, 32)
_FullScreen
c& = _NewImage(1200, 1200, 32)
_Dest c&
Circle (600, 600), 550, &HFFFFFFFF
Circle (600, 600), 500, &HFFFFFFFF
Paint (1125, 600), &HFFFFFFFF, &HFFFFFFFF
_Dest 0
max = 1000: dr = .1
Do
    Cls
    w = max: w2 = w / 2: r = 10
    While w > 15 Or _KeyDown(27)
        a = a + .5: r = r * 1.1
        x = 300 + r * Cos(_D2R(a)): y = 300 + r * Sin(_D2R(a))
        _PutImage (x - w2, y - w2)-Step(w, w), c&, 0
        w = w * .8: w2 = w * .5
    Wend
    _Display
    _Limit 10
Loop Until _KeyDown(27)

And even less LOC!
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Messages In This Thread
RE: time tunnel animation - can this be done as high res and smooth as the video? - by bplus - 09-21-2024, 12:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Finaly, qb64pe-4.3.0 could work on macOS 10.13.6 (High Sierra) ! Fifi 0 149 01-20-2026, 02:53 PM
Last Post: Fifi
  A more complete instructional video James D Jarvis 2 600 05-08-2025, 03:16 PM
Last Post: James D Jarvis
  Curious. Do we still have a way to change the date and time? Pete 4 935 10-25-2022, 06:43 PM
Last Post: Pete
  Call a video from QB64 Kernelpanic 3 909 09-02-2022, 05:35 PM
Last Post: Kernelpanic
  It's verification time!!! fatman2021 31 5,961 08-15-2022, 04:50 PM
Last Post: fatman2021

Forum Jump:


Users browsing this thread: 1 Guest(s)