TrashBoat Posted April 14, 2018 Posted April 14, 2018 Could someone help me create or give an idea of how to do a incrementing for loop that would do this: https://i.imgur.com/YFUt47H.gifv I'm having a hard time figuring it out :S
bernd670 Posted April 14, 2018 Posted April 14, 2018 (edited) Hello, you can use multiple whileloops Spoiler expandcollapse popup#include <Color.au3> Local $RGB[] = [ 255, 0 , 0] Local $SleepTime = 10 $hGUI = GUICreate("test", 100, 100) GUISetBkColor(_ColorSetRGB($RGB), $hGUI) GUISetState(@SW_SHOW) For $i = 1 To 10 While $RGB[1] < 255 $RGB[1] += 1 GUISetBkColor(_ColorSetRGB($RGB), $hGUI) Sleep($SleepTime) WEnd While $RGB[0] > 0 $RGB[0] -= 1 GUISetBkColor(_ColorSetRGB($RGB), $hGUI) Sleep($SleepTime) WEnd While $RGB[2] < 255 $RGB[2] += 1 GUISetBkColor(_ColorSetRGB($RGB), $hGUI) Sleep($SleepTime) WEnd While $RGB[1] > 0 $RGB[1] -= 1 GUISetBkColor(_ColorSetRGB($RGB), $hGUI) Sleep($SleepTime) WEnd While $RGB[0] < 255 $RGB[0] += 1 GUISetBkColor(_ColorSetRGB($RGB), $hGUI) Sleep($SleepTime) WEnd While $RGB[2] > 0 $RGB[2] -= 1 GUISetBkColor(_ColorSetRGB($RGB), $hGUI) Sleep($SleepTime) WEnd Next Edited April 14, 2018 by bernd670 TrashBoat 1 greetingsbernd I hacked 127.0.0.1 ->
TrashBoat Posted April 14, 2018 Author Posted April 14, 2018 40 minutes ago, bernd670 said: Hello, you can use multiple whileloops Thanks! That works perfectly
UEZ Posted April 15, 2018 Posted April 15, 2018 (edited) Might also help using HSL color space: Edited April 15, 2018 by UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now