Skip to content

stokeText()

SS Huh edited this page Jan 24, 2021 · 1 revision
  • Canvas의 메서드

  • 기능 : 바로 캔버스에 텍스트를 즉시 그린다. (cf. path기반 방식)

  • 사용방법 예제

    context.font = "italic 40pt 궁서체";

    context.strokeStyle = "red";

    context.lineWidth = 2;

    context.strokeText("컴퓨터과학 HTML5", 20, 65);

Clone this wiki locally