Skip to content

Instantly share code, notes, and snippets.

@bastianallgeier
Created October 25, 2010 13:08
Show Gist options
  • Save bastianallgeier/644915 to your computer and use it in GitHub Desktop.
Save bastianallgeier/644915 to your computer and use it in GitHub Desktop.
<?php $hsl = rand(0, 240) . ',' . rand(50, 80) . '%,60%'; ?>
<style type="text/css">
a {
color: hsl(<?php echo $hsl ?>);
}
</style>
@samrdev
Copy link

samrdev commented Jan 15, 2012

For what is this especially?

@bastianallgeier
Copy link
Author

@samrdev I used this on my own site: http://bastianallgeier.com to generate a random main color with every page refresh.

@samrdev
Copy link

samrdev commented Jan 16, 2012

That's a nice idea! Thanks for sharing!

@born2discover
Copy link

Funny idea, thanks for sharing :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment