About 470,000 results
Open links in new tab
  1. javascript - Random color generator - Stack Overflow

    Given this function, I want to replace the color with a random color generator.

  2. c# - Get Random Color - Stack Overflow

    Random r = new Random(); BackColor = Color.FromArgb(0, 0, r.Next(0, 256)); I want my Code to return one, random Color, not only green/red/blue every time, as the above ones do. How to solve this? …

  3. How do you get random RGB in Javascript? - Stack Overflow

    I have this code that uses RGB color selection and I was wondering how to make JavaScript do a random color using the RGB method and remember it throughout the code. EDIT: I tried this: var …

  4. Generating a random hex color code with PHP - Stack Overflow

    I'm working on a project where I need to generate an undefined number of random, hexadecimal color codes…how would I go about building such a function in PHP?

  5. Change background color with button in HTML page (how to use more …

    So far I can get my background color on my page to change when I click the button but only to the 1 set color. I want to be able to keep clicking on the button and get a different color each time ...

  6. Create a hexadecimal colour based on a string with JavaScript

    I find that generating random colors tends to create colors that do not have enough contrast for my taste. The easiest way I have found to get around that is to pre-populate a list of very different colors. For …

  7. Best way to generate a random color in javascript? [closed]

    The similar idea is implemented in Adams Cole answer to the similar question, but his code have random color generator and hsl->hex rgb translator bundled together which makes it hard to …

  8. python - Generate random colors (RGB) - Stack Overflow

    Mar 12, 2015 · Taking a uniform random variable as the value of RGB may generate a large amount of gray, white, and black, which are often not the colors we want. The cv::applyColorMap can easily …

  9. Android: Generate random color on click? - Stack Overflow

    Mar 12, 2011 · 118 I have an ImageView, in which I am programmaticly creating drawables and presenting them to the user. My goal is to click on said ImageView and change the drawable's color. …

  10. Generate Random Color distinguishable to Humans

    I was looking for a method to generate a random vivid readable color based on relative luminance (blue, yellow and green are darker) but this enters my list of "think simple" answers.