Turn gauge arc into gradient

There are several approaches to this problem. Some include:

  1. draw many tiny arc segments to create a gradient (solution from @Ov3rM1nD above)
  2. create a closed PShape in the shape of an arc and fill with a gradient (e.g. a PShader)
  3. draw a full gradient image, then draw a single arc as a mask and apply to “cut-out” your gradient.

For examples and past discussion of the mask-based approach, see:

There is also a related library:

1 Like