Navigation
Synopsis Create a list of intermediate colors between two colors.
Function list[Color] colorSteps(Color from, Color to, int steps)
Description Create a list of interpolated colors between from and to in a given number of steps.
Examples
boxes = [ box([size(50), fillColor(c)]) | c <- colorSteps(color("Yellow"), color("Blue"), 10) ];
render(hcat(boxes));
gives: h1
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.