stone function
Stone colors from one body color: light, body, shade, dust (lighter and greyer), lip (a lit broken edge).
Implementation
StonePalette stone(Object c) {
final col = hex(c);
return StonePalette(
light: mix(scaleColor(col, 1.35), kWhite, 0.08),
body: col,
shade: scaleColor(col, 0.64),
dust: mix(scaleColor(col, 1.2), rgb(150, 140, 150), 0.3),
lip: mix(scaleColor(col, 1.55), kWhite, 0.12),
);
}