This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background: linear-gradient(293deg, #aad8cb, #dc654d, #f7d66c, #372e36, #1a1919); | |
background-size: 1000% 1000%; | |
-webkit-animation: background 30s ease infinite; | |
-moz-animation: background 30s ease infinite; | |
-o-animation: background 30s ease infinite; | |
animation: background 30s ease infinite; | |
height: 1vh; | |
width: 1vw; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Open the color picker | |
on convertRGBColorToHexValue(theRGBValues) | |
set theHexList to {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"} | |
set theHexValue to "" | |
repeat with a from 1 to count of theRGBValues | |
set theCurrentRGBValue to (item a of theRGBValues) div 256 | |
if theCurrentRGBValue is 256 then set theCurrentRGBValue to 255 | |
set theFirstItem to item ((theCurrentRGBValue div 16) + 1) of theHexList | |
set theSecondItem to item (((theCurrentRGBValue / 16 mod 1) * 16) + 1) of theHexList | |
set theHexValue to (theHexValue & theFirstItem & theSecondItem) as string |
OlderNewer