{ "name": "create_ramp", "type": "function", "groups": ["Color"], "description": "Returns a gradient ramp from a map of color strings and steps.", "arguments": [ {"arg":"map","description":"a map of color strings and steps"}, {"arg":"discrete","optional":true,"default":"false","description":"set this parameter to true to create a discrete color ramp"}], "examples": [ { "expression":"ramp_color(create_ramp(map(0,'0,0,0',1,'255,0,0')),1)", "returns":"'255,0,0,255'"} ] }