✨color wheel
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
browser ⟩ canvas ⟩ graphics state ⟩ fill/stroke styles ⟩ colors ⟩ color wheel
💾 replit:color wheel
⬆️ require: drawOnCanvas2D()
function deg(x) { return Math.PI * x / 180 } // degrees
// color wheel
function colorWheel(n) {
// draw on canvas
drawOnCanvas2D('#playground', (ctx)