목록개발이야기 (512)
준호씨의 블로그
strokeText 했더니 삐죽삐죽 가시가 나온다면? lineJoin 형식이 기본 miter 로 되어 있는데, 선과 선이 연결 되는 부분을 뾰족하게 처리 해 준다는 의미이다. lineJoin 을 round 로 해주면 매끄럽게 처리 된다. context.lineJoin = 'round';
텍스트에 outline 효과를 주고 싶으면 strokeText 를 이용하면 된다. 테두리 색은 기본 black 이다. 만약 바꾸고 싶으면 strokeStyle 값을 바꿔 주면 된다. context.strokeStyle = 'black';
canvas 에 text 를 그리고 싶다면 fillText 함수를 이용하면 된다.
leetcode https://leetcode.com/ programmers https://programmers.co.kr/learn/challenges 백준 https://www.acmicpc.net/ hacker rank https://www.hackerrank.com/ codewars https://www.codewars.com/
운영툴 프로젝트를 하나 전달 받았는데 로컬 개발 환경을 세팅 하니 일정 시간이 지나면 "Error: Connection lost: The server closed the connection." 이 발생하면서 nodejs 프로세스가 죽어 버렸다. 좀 더 상세히 적자면 events.js:182 throw er; // Unhandled 'error' event ^ Error: Connection lost: The server closed the connection. at Protocol.end (/Users/junho85/WebstormProjects/.../node_modules/mysql/lib/protocol/Protocol.js:112:13) at Socket. (/Users/junho8..