Processing ColorWheel

Example code to draw a sliced color wheel with the bezierVertex() function in Processing.

I wanted to create a sliced color wheel in Processing. This is not easy to do with the build in functions. You can draw PieCharts with Processing with the arc() function. However its impossible to make a ring chart like effect, without masking parts with an ellipse. In the code below is shown how to draw an arc shape with a bezierVertex. The code is based on code from the book Processing 2: Creative Coding and Generative Art

Buy Me a Coffee at ko-fi.comWas this article useful to you? Buy me a coffee!