Timeline for Create a hexadecimal colour based on a string with JavaScript
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 3, 2022 at 17:49 | comment | added | Leon |
For those you encounter that some hashes turn negative and the color is always gray. It turns our js converts to int32 and stuff, see SA. So I have changes the line from return char.charCodeAt(0) + ((acc << 5) - acc); to return char.charCodeAt(0) + ((acc << 5 >>> 0) - acc);
|
|
Mar 31, 2022 at 11:07 | history | edited | Viraj Singh | CC BY-SA 4.0 |
added 4 characters in body
|
Mar 31, 2022 at 11:07 | comment | added | Viraj Singh | of course, you can. | |
Mar 30, 2022 at 10:58 | comment | added | Usukhbayar Batbayar | This is really nice. May I use this code? | |
Mar 23, 2022 at 4:49 | history | edited | Viraj Singh | CC BY-SA 4.0 |
added 18 characters in body
|
Sep 15, 2021 at 11:05 | history | answered | Viraj Singh | CC BY-SA 4.0 |