Code: Select all
GetScreenRes>Width,Height
Dialog>White
Caption=Close
Width=%width%
Height=%height%
Top=0
Left=CENTER
Max=0
Min=0
Close=1
Resize=1
label= ,10,20,true
EndDialog>White
Show>White
Label>Loop
GetDialogAction>White,reswhite
If>reswhite=2
Exit>0
EndIF
Wait>0.01
GoSub>ColorFlow
Goto>Loop
SRT>ColorFlow
Assigned>rednum,redres
If>redres=FALSE
Random>255,rednum
Random>255,greennum
Random>255,bluenum
Random>2,RedDirection
Random>2,GreenDirection
Random>2,BlueDirection
EndIf
Random>3,Hue
Random>3,step
If>%rednum%<%step%
Let>RedDirection=1
EndIf
If>%greennum%<%step%
Let>GreenDirection=1
EndIf
If>%bluenum%<%step%
Let>BlueDirection=1
EndIf
If>{%rednum%>(255-%step%)}
Let>RedDirection=0
EndIf
If>{%greennum%>(255-%step%)}
Let>GreenDirection=0
EndIf
If>{%bluenum%>(255-%step%)}
Let>BlueDirection=0
EndIf
If>RedDirection=1
If>{(%Hue%=2) and (%rednum%<(255-%step%))}
Let>rednum=%rednum%+%step%
EndIf
EndIf
If>GreenDirection=1
If>{(%Hue%=1) and (%greennum%<(255-%step%))}
Let>greennum=%greennum%+%step%
EndIf
EndIf
If>BlueDirection=1
If>{(%Hue%=0) and (%bluenum%<(255-%step%))}
Let>bluenum=%bluenum%+%step%
EndIf
EndIf
If>RedDirection=0
If>{(%Hue%=2) and (%rednum%>(0+%step%))}
Let>rednum=%rednum%-%step%
EndIf
EndIf
If>GreenDirection=0
If>{(%Hue%=1) and (%greennum%>(0+%step%))}
Let>greennum=%greennum%-%step%
EndIf
EndIf
If>BlueDirection=0
If>{(%Hue%=0) and (%bluenum%>(0+%step%))}
Let>bluenum=%bluenum%-%step%
EndIf
EndIf
RGB>rednum,greennum,bluenum,colorwhite
SetDialogObjectColor>White,,%colorwhite%
Let>White.mslabel1=%RedNum%,%GREENNum%,%BlueNum%,%colorwhite%
END>ColorFlow