홈 › Components › Sketch (그림판) › 화면 9
화면 9. Sketch.currentX [source]
원본: Computation Layer 문서(Sketch (그림판)) · Try It (원본 화면)
| 화면 번호 | 9 / 34 |
|---|---|
| 문서 항목 설명 (원문) | currentX Gets the current x-coordinate of the mouse. Works on hover with a mouse and while depressed for touch. |
1. 화면 캡처 (빨간 번호 = 아래 표의 번호)
2. CL이 입력된 곳
| 번호 | 이름 | 종류 | CL 코드 원문, 번역, 설명 |
|---|---|---|---|
| 1 | master CL | SCREEN | # Use a subtitle sink to display the current # x-coordinate of the cursor on the sketch component. # A ${ } is used to put the number into a string. ▷ 부제목 sink로 그림판 구성요소에서 커서의 현재 x좌표를 표시한다. 숫자를 글자에 넣을 때 ${ }를 쓴다. subtitle: "Current `x`: `${sampleSketch.currentX}`" ▶ 화면 제목 아래에 표시할 부제목(subtitle)은 "Current `x`: `${sampleSketch.currentX}`"(현재 x: 뒤에 커서의 x좌표)로 한다. |