PHP - calculate color (hex) based on given variables

pankajabcd

New Member
I'm trying to create a tag cloud and need help in creating a function that can calculate the color needed to apply to each tag link.I have 3 variables:
  • individual tag importance (from 0.1 to 1)
  • largest (most important) tag color (hex code, eg. 'fff000')
  • (hex code) smallest (less important) tag color (hex code)
 
Back
Top