{"id":88,"date":"2022-08-23T02:17:05","date_gmt":"2022-08-23T02:17:05","guid":{"rendered":"https:\/\/eric.tedjamulia.com\/blog\/rebecca-matching-colors\/"},"modified":"2026-10-29T05:11:03","modified_gmt":"2026-10-29T05:11:03","slug":"rebecca-matching-colors","status":"publish","type":"post","link":"https:\/\/eric.tedjamulia.com\/blog\/rebecca-matching-colors\/","title":{"rendered":"Matching colors with Rebecca"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I have been teaching Rebecca about colors in code, and we made another little game to play with the idea. It gives you a random color and three sliders. Adjust the red, green, and blue until your color matches it before time runs out.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I wanted to connect the numbers to what she could see. We add up how far each slider is from the target, so the computer has a way to decide whether a guess is close enough. The countdown and score gave us some practice with timers and updating the screen. A little math, a little guessing, and a lot of colors.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"320\" height=\"450\" src=\"https:\/\/eric.tedjamulia.com\/blog\/wp-content\/uploads\/2024\/08\/rebecca-match-screenshot.png\" alt=\"RGB sliders and a target color in Rebecca&#039;s matching game.\" class=\"wp-image-106\" srcset=\"https:\/\/eric.tedjamulia.com\/blog\/wp-content\/uploads\/2024\/08\/rebecca-match-screenshot.png 320w, https:\/\/eric.tedjamulia.com\/blog\/wp-content\/uploads\/2024\/08\/rebecca-match-screenshot-213x300.png 213w\" sizes=\"auto, (max-width: 320px) 100vw, 320px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/studio.code.org\/projects\/applab\/mpBwQSdoqtJaOfDaOQy3_Ns9kD1TYCdup5ybs6XLWXQ\">Try match on Code.org.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been teaching Rebecca about colors in code, and we made another little game to play with the idea. It gives you a random color and three sliders. Adjust the red, green, and blue until your color matches it before time runs out. I wanted to connect the numbers to what she could see. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[72],"tags":[73,5,3,25],"class_list":["post-88","post","type-post","status-publish","format-standard","hentry","category-programming-with-kids","tag-code-org","tag-family","tag-javascript","tag-teaching"],"_links":{"self":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/posts\/88","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/comments?post=88"}],"version-history":[{"count":1,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/posts\/88\/revisions"}],"predecessor-version":[{"id":107,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/posts\/88\/revisions\/107"}],"wp:attachment":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/media?parent=88"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/categories?post=88"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/tags?post=88"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}