0

Can u make a rounded rectangle with canvas?

Canvas rectangle

22nd Dec 2018, 9:53 PM
TOXIC dz
TOXIC dz - avatar
2 Antworten
+ 2
Well you could use arc in javascript to draw a circle in canvas canvas.arc(100, 70, 50, 0, 2 * Math.PI); edit: ya Calvin's answer is more accurate so refer his code tutorial on quadraticCurceTo() by MDN https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo
22nd Dec 2018, 10:57 PM
Leon lit
Leon lit - avatar
23rd Dec 2018, 1:34 AM
Calviղ
Calviղ - avatar