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

화면 30. Sketch.correct [sink]

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

화면 번호30 / 34
문서 항목 설명 (원문)correct Sets a Boolean value that determines whether or not a gray checkmark is displayed for the student's screen in the dashboard's summary view.

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

화면 30 캡처

화면에 적힌 영어 문구(원문):

2. CL이 입력된 곳

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

번호이름종류CL 코드 원문, 번역, 설명
1sketch1그림판
# Creates a check mark in the summary tab of the teacher dashboard
# when the total stroke length of the sketches is between 6.6 and 6.8.
▷ 스케치들의 전체 획 길이가 6.6과 6.8 사이이면 교사 대시보드의 요약 탭에 체크 표시를 만든다.

correct: this.sketch.totalStrokeLength > 6.6 and this.sketch.totalStrokeLength < 6.8
▶ 그림판의 정답 조건(correct)은 this.sketch.totalStrokeLength가 6.6보다 크고 6.8보다 작으면 참으로 한다.
correct는 참이면 교사 대시보드 요약에 회색 체크를 표시한다. totalStrokeLength는 스케치를 받아 모든 획의 길이를 합친 숫자를 돌려준다. and는 둘 다 참이어야 참이다.