java - Draw a curved path on Canvas? -


How can I draw a quadratic curve or a trigonometric curve (like sin (x) ) On ?

Most drawing APIs do not provide such functions, you will need to calculate the pixels of the desired curve in pixels. Using a single or more calls in the canvas API, drag the piece by slicing it on the canvas.

Comments