Created
April 19, 2015 23:37
-
-
Save burntcookie90/066e3b4293d8edf91994 to your computer and use it in GitHub Desktop.
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
fun expandColor(colorString : String) : String { | |
return if (colorString.length() <= 4) { | |
"${colorString[0]}${colorString[1]}${colorString[1]}${colorString[2]}${colorString[2]}${colorString[3]}${colorString[3]}" | |
} | |
else { | |
colorString | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment