Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Kaleidoscope
#1
Possibly the simplest kaleidoscope we have all seen, but I think it came out pretty neat. I was experimenting with circles and came across this. The longer you watch it, the cooler it looks in my opinion. What do you all think? 24 lines of code. lol 

Code: (Select All)
'Kaleidoscope by SierraKen
'May 18, 2022
Screen _NewImage(800, 800, 32)
_Title "Kaleidoscope by SierraKen"
Randomize Timer
cc = 1
Do
    _Limit 25
    If c <> 0 Then cc = c
    c = Rnd * 360
    If c < cc Then
        s = -.25
    Else
        s = .25
    End If
    cl1 = Int(Rnd * 200) + 1
    cl2 = Int(Rnd * 200) + 1
    cl3 = Int(Rnd * 200) + 1
    For t = cc To c Step s
        x = (Sin(t) * t) + 400
        y = (Cos(t) * t) + 400
        Circle (x, y), 2, _RGB32(cl1, cl2, cl3)
    Next t
Loop Until InKey$ = Chr$(27)
Reply


Messages In This Thread
Kaleidoscope - by SierraKen - 05-18-2022, 07:58 PM
RE: Kaleidoscope - by Rick3137 - 05-18-2022, 09:45 PM
RE: Kaleidoscope - by SierraKen - 05-19-2022, 12:04 AM
RE: Kaleidoscope - by bplus - 05-19-2022, 03:39 PM
RE: Kaleidoscope - by SierraKen - 05-19-2022, 06:33 PM
RE: Kaleidoscope - by bplus - 05-25-2022, 12:58 AM
RE: Kaleidoscope - by Rick3137 - 05-28-2022, 01:29 PM
RE: Kaleidoscope - by SierraKen - 05-29-2022, 12:04 AM
RE: Kaleidoscope - by Rick3137 - 05-29-2022, 04:12 PM



Users browsing this thread: 1 Guest(s)