protected override Node Evaluate(Env env) { ColorPoint[] points = GetColorPoints(); WarnNotSupportedByLessJS("gradientImage(color, color[, position])"); string colorDefs = ColorPoint.Stringify(points); string imageUrl = GetFromCache(colorDefs); if (imageUrl == null) { imageUrl = "data:image/png;base64," + Convert.ToBase64String(GetImageData(points)); AddToCache(colorDefs, imageUrl); } return(new Url(new TextNode(imageUrl))); }