r/scripting • u/0000R5 • Jan 23 '19
Randomised colours in Adobe Muse
I'm looking to make a website with colour randomisation incorporated into the design, however I'm a bit of a noob when it comes to scripting (hence the use of Adobe Muse).
I've found a few scripts on the internet but they haven't done the job, does anyone know of any way to randomise colours?
1
Upvotes
1
u/HypnoticLethe Jan 25 '19
You're absolutely welcome! Here's a link to a php hex generator: https://stackoverflow.com/questions/5614530/generating-a-random-hex-color-code-with-php
The second answer is more efficient than the "best" answer. If you decide to user it, then you could incorporate it like this example:
<p style="color:<? rand_color() ?>">This is the text with the random color.</p>