randomstringtocsscolor
randomstringtocsscolor copied to clipboard
Show what happens to the string right in the explanation
For example, my string is Ooker, so in the explanation it should say:
- Change each non-hex character to a 0
000e0 - Add 0's to the string until its length is a multiple of 3.
000e00 - Divide string into 3 equal parts.
00,0e,00 - While the length of the sub-strings is greater than 2, and all three of the sub-strings begin with a 0, remove the leading 0s from each string.
- If the length of the sub-strings is still greater than 2, then truncate each substring to 2 characters.