← 수업 제작 도구
홈 › Components › Sketch (그림판) › 화면 13

화면 13. Sketch.bounds [sink]

원본: Computation Layer 문서(Sketch (그림판)) · Try It (원본 화면)

화면 번호13 / 34
문서 항목 설명 (원문)bounds Sets the bounds of this sketch. If the sketch has a graph background, it will be updated to match.

1. 화면 캡처 (빨간 번호 = 아래 표의 번호)

화면 13 캡처

2. CL이 입력된 곳

코드 안의 회색 줄은 원문 영어 주석이고, 파란 줄은 그 영어 주석의 번역이며, 연분홍 줄은 코드가 하는 일의 설명이다.

번호이름종류CL 코드 원문, 번역, 설명
1레이블 없는 그림판그림판
# This code uses a makeBounds function and the bounds sink 
# to set the window bounds of the sketch component.
▷ 이 코드는 makeBounds 함수와 bounds sink로 그림판 구성요소의 화면 경계를 정한다.

bounds: makeBounds(-5,15,-15,5)
▶ 그림판의 경계(bounds)는 makeBounds(-5,15,-15,5), 즉 왼쪽 -5, 오른쪽 15, 아래 -15, 위 5로 한다.
bounds는 이 그림판의 경계를 정한다. makeBounds(left, right, bottom, top)은 왼쪽, 오른쪽, 아래, 위 값으로 경계 객체를 만든다.