Timeline for answer to True color code by Ismael Miguel
Current License: CC BY-SA 4.0
Post Revisions
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 17, 2020 at 9:04 | history | edited | CommunityBot |
Commonmark migration
|
|
| Sep 24, 2018 at 16:45 | comment | added | Ismael Miguel |
Well, it would .... If I didn't forgot to change %d to %x. And completely forgot about moving the # inside the sprintf() call. You saved me 6 bytes. Thank you
|
|
| Sep 24, 2018 at 16:43 | history | edited | Ismael Miguel | CC BY-SA 4.0 |
Fixed and shortened
|
| Sep 24, 2018 at 15:27 | comment | added | manatwork |
Are you sure this will ever output hex digits with the %1$06d format string? And I see no reason for using 1$. You could reduce the length by including the “#” in the format string: #%06x. Which would come handy when adding extra characters to fix the range, as currently counts up to 16777216 = #1000000.
|
|
| Sep 24, 2018 at 14:54 | history | answered | Ismael Miguel | CC BY-SA 4.0 |