Skip to main content
16 events
when toggle format what by license comment
Sep 4, 2023 at 22:25 comment added Thymine @cbreezier that is because this uses the same hash function it appears. Feel free to change the hash function to something else, multiply by a large prime number and/or XOR with large prime number should move it around. But this example is aiming for a range of 360 colors of a similar tone, yes duplicates will happen, cheers
Sep 3, 2023 at 12:39 comment added cbreezier This has the same problem as Cristian's solution where the hashing algorithm produces very similar results for very similar inputs.
Aug 9, 2022 at 2:24 history edited Thymine CC BY-SA 4.0
added 188 characters in body
Aug 9, 2022 at 2:16 history edited Thymine CC BY-SA 4.0
deleted 253 characters in body
Sep 30, 2021 at 4:02 comment added Zei Cleaned up and converted into a single stand alone function jsfiddle.net/j9gymw0t/1
Mar 20, 2019 at 15:46 comment added catamphetamine This solution returns too little colors, won't do.
Mar 18, 2019 at 7:42 comment added simey.me This approach is really useful to give the desired vibrance/subtlety that my app needed. A random Hex varies far too much in saturation and brightness to be useful in most situations. Thanks for this!
Oct 15, 2018 at 17:59 comment added Thymine @haykam Thanks for making it into a snippet!
S Oct 14, 2018 at 19:54 history suggested bb216b3acfd8f72cbc8f899d4d6963 CC BY-SA 4.0
Make code into a snippet
Oct 14, 2018 at 19:32 review Suggested edits
S Oct 14, 2018 at 19:54
May 23, 2017 at 12:18 history edited URL Rewriter Bot
replaced http://stackoverflow.com/ with https://stackoverflow.com/
May 28, 2016 at 12:22 comment added Florian Bauer Thx for sharing a solution, where you can decide how colorful the colors should be!
May 18, 2015 at 16:40 history edited Thymine CC BY-SA 3.0
degrees typo
May 18, 2015 at 15:02 comment added MastaBaba A very versatile solution.
Feb 10, 2014 at 16:48 history edited Thymine CC BY-SA 3.0
added 181 characters in body
Feb 10, 2014 at 16:41 history answered Thymine CC BY-SA 3.0