💅 Sets the stroke (outline) color. The default is black.
Like the color function, this function can accept colors in a wide range of formats: as a CSS color string, a Color object, grayscale value, or color component values.
color
Color
await Canvas(200);background(0.8);fill(0.14);stroke('red');circle(-20, -20, 80);stroke('lime');square(-20, -20, 80); Copy
await Canvas(200);background(0.8);fill(0.14);stroke('red');circle(-20, -20, 80);stroke('lime');square(-20, -20, 80);
💅 Sets the stroke (outline) color. The default is black.
Like the
colorfunction, this function can accept colors in a wide range of formats: as a CSS color string, aColorobject, grayscale value, or color component values.