if(flower.cooldown > 0)
{
    flower.cooldown -= elapsed*10;
    var p = (flower.maxCooldown-flower.cooldown)/flower.maxCooldown;
    
    flower.alpha = 0.10 + (0.75 * p);
    
    if(flower.cooldown <= 0)
    {
        flower.cooldown = 0;
        flower.pollen = flower.maxPollen;
        flower.alpha = 1.0;
    }
}