geometry-microsim

Refactor and standardize geometry MicroSims in p5.js with local coordinate patterns.

1|Updated Nov 21, 2024
One-click install
npx skills add https://github.com/dmccreary/geometry-course --skill geometry-microsim
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: geometry-microsim
Source: https://github.com/dmccreary/geometry-course/tree/main/skills/geometry-microsim
Command: npx skills add https://github.com/dmccreary/geometry-course --skill geometry-microsim

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Refactors and standardizes geometry MicroSims in p5.js to improve maintainability and mathematical accuracy.

Core Features & Use Cases

  • Local coordinate system patterns that center drawing at origin for easier transformation.
  • Push/pop/translate/scale usage to isolate geometry calculations from positioning.
  • Guidelines for labeling, scaling compensation, and robust geometry calculations to support multi-panel demos.

Quick Start

Follow these patterns to start a new geometry MicroSim by organizing code in local coordinates and applying transforms before rendering.

Frequently Asked Questions about geometry-microsim

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use push pop translate scale patterns in p5.js for geometry visualization?

Push pop translate scale patterns in p5.js isolate geometry calculations from screen positioning by centering drawing at a local coordinate origin, making transformations easier to manage and mathematically accurate.

What is the best way to structure p5.js code for educational geometry MicroSims?

The best way to structure educational geometry MicroSims in p5.js is to refactor code into local coordinate systems, apply structured documentation, and standardize file naming to ensure long-term maintainability and consistent high-quality demos.

How do I handle scaling compensation for multi-panel p5.js geometry demos?

Scaling compensation for multi-panel p5.js geometry demos requires using push/pop and translate patterns before rendering, ensuring robust geometry calculations that properly isolate each panel's transform state without visual distortion.

Why does my p5.js geometry visualization break when I add labels to transformed shapes?

Geometry visualizations break when labels are added because transforms applied to shapes also distort text. Using local coordinate systems and scaling compensation patterns separates label rendering from shape transforms to prevent distortion.

Do I need to center drawing at the origin for maintainable p5.js geometry patterns?

Yes, centering drawing at the origin is required for maintainable p5.js geometry patterns. Local coordinate systems allow developers to apply push/pop and translate functions cleanly, isolating mathematical logic from absolute screen positioning.