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?
#32
OK I tried it and now I am nauseous
Code: (Select All)
_Title "Time Tunnel" ' bplus 2024-09-20
Screen _NewImage(600, 600, 32)
_ScreenMove 250, 60

c& = _NewImage(1200, 1200, 32)
_Dest c&
FC3 600, 600, 550, &HFFFFFFFF
FC3 600, 600, 500, &HFF000000
_Dest 0
max = 1000
Do
    w = max: w2 = w / 2
    While w > 30
        _PutImage (300 - w2, 300 - w2)-Step(w, w), c&, 0
        w = w * .81: w2 = w * .5
    Wend
    FC3 300, 300, 13, &HFFFFFFFF
    FC3 300, 300, 12, &HFF000000
    _Display
    max = max + 4
    If max >= 1230 Then max = 1000
Loop Until _KeyDown(27)

Sub FC3 (cx As Long, cy As Long, r As Long, clr~&) ' all types integer due to float errors
    Dim As Long r2, x, y ' for Option _Explicit
    If r < 1 Then Exit Sub
    Line (cx - r, cy)-(cx + r, cy), clr~&, BF
    r2 = r * r
    Do
        y = y + 1
        x = Sqr(r2 - y * y)
        Line (cx - x, cy + y)-(cx + x, cy + y), clr~&, BF
        Line (cx - x, cy - y)-(cx + x, cy - y), clr~&, BF
    Loop Until y = r
End Sub
  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-20-2024, 11:22 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 148 01-20-2026, 02:53 PM
Last Post: Fifi
  A more complete instructional video James D Jarvis 2 599 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 933 10-25-2022, 06:43 PM
Last Post: Pete
  Call a video from QB64 Kernelpanic 3 907 09-02-2022, 05:35 PM
Last Post: Kernelpanic
  It's verification time!!! fatman2021 31 5,945 08-15-2022, 04:50 PM
Last Post: fatman2021

Forum Jump:


Users browsing this thread: 1 Guest(s)