1. Home
  2. /
  3. Snap
  4. /
  5. Snap! Random Color Changer

Snap! Random Color Changer - Snap Typing CST Test

Loading…

Snap! Random Color Changer — Snap Code

Changes sprite color randomly.

when green flag clicked
	forever
		set [color v] effect to (pick random (1) to (200))
		wait (0.5) secs
	end

Snap Language Guide

Snap! is a visual, block-based programming language based on Scratch, designed for advanced CS education. It enables functional programming, first-class procedures, lists, recursion, and custom blocks through a drag-and-drop interface.

Primary Use Cases

  • ▸Teaching computer science concepts
  • ▸Block-based curriculum for beginners
  • ▸Functional programming demonstrations
  • ▸Higher-order functions in visual form
  • ▸Rapid prototyping using visual logic

Notable Features

  • ▸Block-based visual programming
  • ▸Higher-order functions
  • ▸Custom block creation
  • ▸First-class lists and procedures
  • ▸Browser-based, installation-free

Origin & Creator

Snap! (originally BYOB - Build Your Own Blocks) was created by Jens Mönig and Brian Harvey at UC Berkeley.

Industrial Note

Snap! is used in CS education research, AP CS Principles courses, outreach programs, and early-stage prototyping of logic without syntax.

More Snap Typing Exercises

Simple Snap! ProjectSnap! Hello WorldSnap! CounterSnap! Bounce on EdgeSnap! Keyboard Controlled RotationSnap! Sprite Glide DemoSnap! Animation FramesSnap! Variable ToggleSnap! Simple Sound Player

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher