← 수업 제작 도구
홈 › Components › Challenge Creator (챌린지 크리에이터) › 화면 6

화면 6. Challenge Creator.responseBackground [Sink]

원본: Computation Layer 문서(Challenge Creator (챌린지 크리에이터)) · Try It (원본 화면)

화면 번호6 / 6
문서 항목 설명 (원문)responseBackground: Specify a thumbnail image for the response. | responseBounds: Set the bounds of the responseBackground.

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

화면 6 캡처

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

2. CL이 입력된 곳

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

번호이름종류CL 코드 원문, 번역, 설명
1master CL
(화면 전체)
SCREEN
subtitle: "NOTE: This is a partial activity. For the completed version of this activity visit:
https://teacher.desmos.com/activitybuilder/custom/630ff3a79c41203693d72a2a"
▶ 화면 제목 아래에 표시할 부제목(subtitle)은 "NOTE: This is a partial activity. For the completed version of this activity visit:"(참고: 이 활동은 일부만 담고 있다. 이 활동의 완성본은 다음 주소를 보시오:)와 완성본 주소 https://teacher.desmos.com/activitybuilder/custom/630ff3a79c41203693d72a2a로 한다.
2레이블 없는 챌린지 크리에이터챌린지 크리에이터
# Set the background of the response thumbnail to show
# what the student sketched on the second screen.
▷ 응답 썸네일의 배경을 학생이 두 번째 화면에서 스케치한 것을 보여 주도록 정한다.
responseBackground: layerStack(graphLayer(sketch2.calculatorState),sketchLayer(sketch1.sketch),sketchLayer(sketch2.sketch))
▶ 응답 썸네일의 배경(responseBackground)은 sketch2의 그래프 상태, sketch1의 스케치, sketch2의 스케치를 차례로 넣어 쌓은 것으로 한다.
graphLayer, sketchLayer, layerStack은 각각 그래프 레이어와 스케치 레이어를 만들고 레이어를 쌓는 함수이다.
# Set the window bounds of the the response thumbnail # to match the second screen. ▷ 응답 썸네일의 창 경계를 두 번째 화면과 같게 정한다. responseBounds: makeBounds(-10,10,sketch2.script.y,sketch2.script.z) ▶ 응답 썸네일의 경계(responseBounds)는 왼쪽 -10, 오른쪽 10, 아래 sketch2의 스크립트 변수 y, 위 sketch2의 스크립트 변수 z로 한다.
makeBounds(left, right, bottom, top)은 왼쪽, 오른쪽, 아래, 위 값으로 경계 객체를 만드는 함수이고, sketch2.script.y는 다른 구성요소(sketch2)의 스크립트에서 정의한 변수 y의 값을 가져오는 표기이다.