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

화면 4. Challenge Creator.challengeBackground [Sink]

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

화면 번호4 / 6
문서 항목 설명 (원문)challengeBackground: Specify a thumbnail image for the challenge. | challengeBounds: Set the bounds of the challengeBackground.

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

화면 4 캡처

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

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 challenge thumbnail to show the sketch 
# and graph layers of the sketch component on the first screen.
▷ 챌린지 썸네일의 배경을 첫 번째 화면 그림판 구성요소의 스케치와 그래프 레이어를 보여 주도록 정한다.
challengeBackground: layerStack(graphLayer(sketch1.calculatorState),sketchLayer(sketch1.sketch))
▶ 챌린지 썸네일의 배경(challengeBackground)은 sketch1의 그래프 상태와 sketch1에 그려진 스케치를 차례로 넣어 쌓은 것으로 한다.
graphLayer(…)는 그래프 상태로 그래프 레이어를 만들고, sketchLayer(…)는 스케치를 레이어로 바꾸며, layerStack(…)은 레이어 여러 개를 쌓아 하나로 만드는 함수이다. sketch1.calculatorState는 sketch1의 전체 그래프 상태를, sketch1.sketch는 그림판에 그려진 모든 것을 나타낸다.
# Set the window of the challenge thumbnail to be bound in both the # x and y directions between -10 and 10. ▷ 챌린지 썸네일의 창을 x 방향과 y 방향 모두 -10과 10 사이로 제한되게 정한다. challengeBounds: makeBounds(-10,10,-10,10) ▶ 챌린지 썸네일의 경계(challengeBounds)는 왼쪽 -10, 오른쪽 10, 아래 -10, 위 10으로 한다.
makeBounds(left, right, bottom, top)은 왼쪽, 오른쪽, 아래, 위 값으로 경계 객체를 만드는 함수이다.