randomstringtocsscolor icon indicating copy to clipboard operation
randomstringtocsscolor copied to clipboard

Show what happens to the string right in the explanation

Open ooker777 opened this issue 10 years ago • 0 comments

For example, my string is Ooker, so in the explanation it should say:

  1. Change each non-hex character to a 0 000e0
  2. Add 0's to the string until its length is a multiple of 3. 000e00
  3. Divide string into 3 equal parts. 00,0e,00
  4. 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.
  5. If the length of the sub-strings is still greater than 2, then truncate each substring to 2 characters.

ooker777 avatar Jun 18 '15 07:06 ooker777