05-16-2022, 01:40 AM
(05-16-2022, 12:58 AM)bplus Wrote: Say! speaking of Desktops how would you (or I) like a Phoenix DeskTop?Yes, I like the blue/red one.
Code: (Select All)_Title "Test Rainbow 2 add image" ' b+ 2022-05-15
w = _DesktopWidth: h = _DesktopHeight: hd2 = h / 2
Screen _NewImage(w, h, 32)
_FullScreen
img& = _LoadImage("Phoenix A.png")
_ClearColor &HFFFFFFFF, img&
Do
Cls
dt = 100
While dt > .002 Or dt < .00095
dt = Rnd * .0015
Wend
rpick = Int(Rnd * 6) + 1
For x = 0 To w
For y = 0 To h
r = Sin(1.1 * t) * hd2 - y + hd2
Select Case rpick
Case 1: Line (x, y)-Step(1, 1), _RGB(r, r - y, -r), BF ' yellow top, red middle, blue bottom
Case 2: Line (x, y)-Step(1, 1), _RGB(r, -r, r - y), BF ' purple , red , green
Case 3: Line (x, y)-Step(1, 1), _RGB(-r, r, r - y), BF ' cyan , yellow green, red
Case 4: Line (x, y)-Step(1, 1), _RGB(-r, r - y, r), BF ' white , blue, red
Case 5: Line (x, y)-Step(1, 1), _RGB(r - y, -r, r), BF ' purple, blue ,green
Case 6: Line (x, y)-Step(1, 1), _RGB(r - y, r, -r), BF ' yellow green blue
End Select
Next
t = t + dt ' <<<<<<<<<<<< put this back in so the background is shaped
Next
_PutImage ((_Width - _Width(img&)) / 2, (_Height - _Height(img&)))-Step(_Width(img&), _Height(img&)), img&, 0
Sleep
Loop Until _KeyDown(27)
You can get the Phoenix Image about halfway through the scroll, here:
https://commons.wikimedia.org/w/index.ph...type=image