TESTER

palette_monochromatic

palette_monochromatic(color, values) -> List of <values> colors

Returns the specified amount of monochromatic colors based on a given color's hues

Syntaxe

var col = palette_monochromatic(color="7C0C09", values=10)

Arguments

NameRequiredDefaultDescription
coloryes-Color
valuesyes-Numbers of colors

Full example

canvas(width=1150, height=100);
var base = "#FFC107";

var col = palette_monochromatic(color=base, values=10);

circle(x= 50, y=50, radius=40, fill=base);
for (var i=0; i<col.length; i++) {
    circle(x=200+i*100, y=50, radius=40, fill=col[i]);
}
arrow(x=150, y=50, rotation=0, length=50, shaft=10, head=25, position=true);
save("palette_monochromatic.png");