<...","url":"https://sir.kr/boards/pb_tip/3007","author":{"@type":"Person","name":"컴프","url":"https://sir.kr/profile/c9d1f864-2b7e-4116-ac49-2d75ac933824"},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"image":"https://sir.kr/data/editor/1701/thumb-65defb0327642f480c2599904de52fad_1485069222_7811_225x109.png","datePublished":"2017-01-22T16:13:45+09:00","dateModified":"2017-01-22T16:18:38+09:00","comment":[{"@type":"Comment","text":"오~ 고맙습니다!","author":{"@type":"Person","name":"대한민국3대김수현"},"datePublished":"2017-01-22T16:18:38+09:00"}]}

HTML5 Canvas Stroke Text

HTML5 Canvas Stroke Text

 

 

65defb0327642f480c2599904de52fad_1485069222_7811.PNG
 

 

 

Example

var c = document.getElementById("myCanvas");

var ctx = c.getContext("2d");

ctx.font = "30px Arial";

ctx.strokeText("Hello World",10,50);

 

 

<!DOCTYPE html>

<html>

<body>

 

<canvas id="myCanvas" width="200" height="100" style="border:1px solid #d3d3d3;">

Your browser does not support the HTML5 canvas tag.</canvas>

 

<script>

var c = document.getElementById("myCanvas");

var ctx = c.getContext("2d");

ctx.font = "30px Arial";

ctx.strokeText("Hello World",10,50);

</script>

 

</body>

</html>

 

|

댓글 1개

오~ 고맙습니다!
댓글을 작성하시려면 로그인이 필요합니다.

퍼블리셔팁

퍼블리싱과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
CSS 9년 전 조회 2,845
CSS 9년 전 조회 2,188
HTML 9년 전 조회 2,283
HTML 9년 전 조회 2,748
HTML 9년 전 조회 2,828
HTML 9년 전 조회 3,951
HTML
[HTML]
9년 전 조회 2,395
HTML
[HTML]
9년 전 조회 2,446
HTML 9년 전 조회 1,988
HTML 9년 전 조회 2,394
HTML 9년 전 조회 2,454
HTML 9년 전 조회 2,628
HTML 9년 전 조회 2,392
HTML 9년 전 조회 2,544
HTML 9년 전 조회 2,818
HTML 9년 전 조회 1,920
HTML 9년 전 조회 2,161
HTML 9년 전 조회 2,162
HTML 9년 전 조회 2,394
HTML 9년 전 조회 1,910
HTML 9년 전 조회 2,945
HTML 9년 전 조회 2,768
HTML 9년 전 조회 2,805
HTML 9년 전 조회 3,121
HTML 9년 전 조회 2,402
HTML 9년 전 조회 2,807
HTML 9년 전 조회 2,350
HTML 9년 전 조회 2,151
HTML 9년 전 조회 1,826
HTML 9년 전 조회 2,102