Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 523 Bytes

File metadata and controls

12 lines (7 loc) · 523 Bytes

EdChart

  • https://developer.mozilla.org/ko/docs/Web/API/Canvas_API/Tutorial/Drawing_shapes

  • beginPath() : 새로운 경로 그리기

  • moveTo(x, y) : 펜을 x, y 좌표로 옮긴다.(그냥 커서만 옮긴다.)

  • lineTo(x, y) : 펜을 x, y 좌표로 그리며 움직인다.

  • stroke() : 실제로 윤곽선을 그린다.

  • arc(x, y, radius, startAngle, endAngle, anticlockwise) : 원점 (x, y), 반지름 r, 시작점 startAngle, 끝점 endAngle, anticlockwise 회전 방향(true 반시계, 기본값 false)