Skip to content

Bézier Control Point Sandbox

Run MicroSim in Fullscreen

Copy this iframe to your website:

<iframe src="https://dmccreary.github.io/p5-textbook/sims/bezier-sandbox/main.html" width="100%" height="487px"></iframe>

Description

Interactive cubic Bézier curve with 4 draggable anchor and control points, tangent guide lines, and p5.js bezier() code generator.

Learning Objectives

  • Primary Goal: Students will understand cubic Bézier geometry, polynomial curve interpolation, and the role of tangent control handles.
  • Bloom's Taxonomy Level: Apply

How to Use

Interact with the visual elements and adjust the control sliders and buttons located beneath the simulation canvas to explore how parameter changes affect the output in real time.

Lesson Plan

Prerequisites

  • Understanding of basic coordinate systems and p5.js sketch execution.
  • Familiarity with variables and interactive event handling.

Interactive Exploration

  1. Observe the default initial state of the simulation.
  2. Adjust the sliders systematically to observe the range of behaviors.
  3. Compare the visual feedback against the theoretical concepts presented in the chapter.

Assessment Questions

  • How does changing each individual parameter influence the resulting visual output?
  • What underlying algorithm or mathematical model governs the state transitions shown in the simulation?

References

  1. p5.js Reference Documentation - Official p5.js documentation and API guides.
  2. Processing Foundation - Educational resources for creative coding.