uncategorised Examples

The theatre provides a presentation layer for files in the theatre/ directory

The theatre files showcase Polypoint features.

The files within this directory are just standard JavaScript files. They work in a standard setup, but the Polypoint site will access additional meta data within the file, such as title and imports.

Checkout the source code within the theatre directory or run one of the examples.

Browse categories

uncategorised: 129 Examples

Theatre files

  • little-walkers thumbnail
    Small walking points move and rotate automatically across the screen with smooth transitions.
  • viewport-track thumbnail
    Smoothly transition a single point while shifting all other points in the scene to maintain focus.
  • mesh-links thumbnail
    Create dynamic mesh networks and interactive point connections with automated line rendering.
  • control-point-using-dirty thumbnail
    Link a point to a control point where movement and radius update based on mutual proximity.
  • scale-selection thumbnail
    Select and scale points using a dynamic drag-to-box selection tool with center-of-mass handling.
  • paperquilts thumbnail
    Add points via clicks or buttons and draw pink quad curves between them on a canvas stage.
  • Simulate double pendulum physics with a multi-segment tail using gravity and angular damping.
  • Simulates multi-joint pendulum physics with chaotic motion, gravity, and adaptive sub-stepping.
  • quad-curve-example thumbnail
    Interactive demo of Catenary Curves with draggable points and real-time rendering.
  • line-example thumbnail
    A clear example demonstrating how to create and render a dynamic line between points on the stage.
  • bezier-curve-example thumbnail
    Render and manipulate smooth Bezier curves with interactive point dragging and visual indicators.
  • Efficiently manage and query 2D spatial data using recursive Quadtree partitioning.
  • locked-joints thumbnail
    Create joints with angular limits by constraining point rotation within a defined cone.
  • project-cone-extended thumbnail
    Render a dynamic, curved projected cone with interactive hit detection and custom outlines.
  • project-cone thumbnail
    Renders a dynamic projected cone with wall-intersection logic and interactive rotation.
  • locked-joints-reverse-rotate thumbnail
    Simulate realistic joint movement where parent points rotate based on child point drag resistance.
  • origin-shift-wide thumbnail
    Experience seamless coordinate transformation and wide-scale origin shifting for complex canvas layouts.
  • maze-inverted-origin-shift thumbnail
    Renders inverted maze walls from JSON data by computing boundaries between grid cells.
  • lines-plain thumbnail
    A grid-based maze stage that dynamically generates walls and paths for navigation.
  • x-projected-circle thumbnail
    An experimental stage featuring dynamic Bezier curves and synchronized point rotations.
  • Experimental stage for managing and animating point directions with dynamic rotation logic.
  • A dynamic SVG path command builder that simplifies creating relative and absolute path data.
  • x-1-GPT-fail thumbnail
    Experimental kinematics demo calculating elbow positions and polar coordinate transformations.
  • within-polygon-test thumbnail
    Draw connected lines and perform real-time "point within polygon" hit tests for interactive fills.
  • widget-examples thumbnail
    Manage UI components like buttons and sliders to control real-time stage animations.
  • Real-time Voice Activity Detection (VAD) to monitor, capture, and play back speech samples as WAV files.
  • A dynamic Three Point Line stage featuring interactive dragging and real-time gradient updates.
  • sun thumbnail
    A solar system visualization featuring orbital data, radial gradients, and planetary scaling.
  • straight-line-connected-main thumbnail
    Render dynamic straight line connections and projected paths between point sets in real-time.
  • stamping thumbnail
    Create repetitive patterns by stamping point-based shapes across the stage canvas.
  • stage-stretch thumbnail
    Responsive stage that automatically scales its canvas dimensions to match the global window size.
  • stage-example thumbnail
    A basic stage setup to generate, weight, and visualize points and their center of mass.
  • stacks thumbnail
    Manage dynamic point stacks and coordinate complex stage movements with real-time interactions.
  • spreadline thumbnail
    A dynamic stage featuring a randomized swarm of jiggling points with varying scales and hues.
  • spreadline-2 thumbnail
    Generate dynamic, jittering line distributions with randomized hues and varying radii on click.
  • splatout thumbnail
    Click to trigger a growing circle that changes the background color once finished.
  • splatout-stack thumbnail
    Create dynamic "Splat" effects by clicking to spawn and animate expanding points with easing.
  • spiral-plotter thumbnail
    Draw a rotating spiral path that leaves a trailing line of points across the screen.
  • spin-plotter thumbnail
    Capture and visualize XY RAD rotation data to create dynamic timestep captures and spline walks.
  • spin-plotter-2 thumbnail
    A dynamic starfield and spinning plotter featuring velocity-based motion and radial plotting.
  • speed thumbnail
    A dynamic particle emitter that adjusts birthrate and velocity based on point speed.
  • speed-2 thumbnail
    Dynamic particle emitter that scales speed and density based on point velocity.
  • Capture canvas frames and upload them to a server to generate animated GIFs.
  • A screen-locked point system that tracks and maps relative coordinates to the global viewport.
  • rotation-field thumbnail
    A dynamic grid of points that synchronizes their rotations based on neighboring angles.
  • rotate-selection thumbnail
    Click-drag to create a bounding box and select multiple points with a center rotation handle.
  • ray-example thumbnail
    Ray casting & reflection logic for calculating intersection points, bounce angles, and hit detection.
  • Generates and renders dynamic, randomized point-to-point line paths and horizon lines on canvas.
  • random-gauge-value thumbnail
    Visualizes random number drift by comparing a raw walk against a bias-corrected gauge system.
  • rainbow-arc-pointlist thumbnail
    Creates a dynamic rainbow gradient arc path with interactive dragging and smooth curve transitions.
  • rainbow-arc-pointlist-another thumbnail
    Generates a smooth, continuous rainbow arc by connecting points using dynamic radial curves.
  • quantize-point thumbnail
    Manage point positions and radius quantization within a dynamic theatrical stage environment.
  • quadratic-example thumbnail
    Interactive quadratic Bezier curve generator with draggable control points and smooth paths.
  • quad-curve thumbnail
    Render dynamic quadratic curves with real-time point coupling and interactive dragging.
  • Interactive Quadtree visualization for spatial partitioning and dynamic point querying.
  • Manage spatial data with Quadtree-ready Rectangle logic for point containment and intersection.
  • protractor-point thumbnail
    Geometric tool to construct and visualize tangent arcs using intersecting circles and diamond shapes.
  • Constructs tangent arcs between two circles using a geometric protractor and intersection logic.
  • potter-dual-lines thumbnail
    Dual Line Potter Wheel: Captures XY RAD points to create smooth spline walks and dual-path curves.
  • polygon-bunkbed thumbnail
    Draw connected lines to form polygons and test point-in-polygon bounds with 3D perspective.
  • Experience seamless 360° movement using the Pointer Lock API for immersive, FPS-style navigation.
  • Render dynamic line projections and multi-point connections with custom styles and rotations.
  • Raw drawing example demonstrating manual line, polygon, and projection rendering without a Stage.
  • plotter-raw thumbnail
    Capture and plot XY RAD point data for timestep captures like spline walks.
  • plotter-cos-sin thumbnail
    Captures and plots dynamic Sine/Cosine wave patterns using timed point lists and rotation.
  • planets thumbnail
    Simulate a solar system with planets orbiting the sun using radial gradients and distance scaling.
  • A basic interactive stage where a red point follows your clicks and renders to the canvas.
  • pattern-example thumbnail
    Create repeating textures by generating and applying custom canvas patterns as fills.
  • Explore geometric relationships through interactive pairs and sibling point structures.
  • origin-shift thumbnail
    Manage coordinate systems and relative positioning with Origin Shift for dynamic point placement.
  • onclick-example thumbnail
    Interactive canvas stage that handles click events to position and render a point object.
  • offscreen-example-a thumbnail
    Manage and render offscreen canvas elements with dynamic copying to the onscreen display.
  • noding thumbnail
    Automatically labels points with alphabetical characters based on their position in a list.
  • noding-arrows thumbnail
    Display a sequence of labeled points joined by paths and directional arrows.
  • noding-arrows-styled thumbnail
    Displays a sequence of points connected by styled arrows and dynamic alpha labels.
  • A dynamic canvas component that renders custom scripts, handles multi-slot configurations, and displays text content.
  • A dynamic canvas component that renders custom logic, code snippets, and text via slot configurations.
  • MIDI track functions for playing river flows, bumblebee arpeggios, and musical scales.
  • A comprehensive MIDI toolset for handling note events, dial values, and real-time input mapping.
  • lorp thumbnail
    Create dynamic Bezier curves between split points with interactive radius scaling and rotation.
  • lorp-2 thumbnail
    Creates a dynamic Bezier curve tube connecting two draggable points with calculated radii.
  • lookat-multiplier thumbnail
    Smoothly animate points towards a target using variable rotation speeds for dynamic motion.
  • Calculate and visualize a point's orientation and projection relative to the mouse position.
  • line-spline-bridge thumbnail
    Create dynamic Bezier curves and interactive line bridges with real-time dragging and FPS tracking.
  • Simulate realistic ball physics with gravity, friction, and bounce within a circular boundary.
  • Simulate smooth, gravity-based rolling of a ball within a circular boundary with realistic friction.
  • A physics simulation featuring a ball bouncing inside a draggable circular boundary with gravity.
  • Simulate a ball bouncing inside a circular boundary with gravity and rolling friction effects.
  • line-connected-main thumbnail
    Render straight lines, Bezier curves, and catenary curves using dynamic point projection.
  • line-arrow thumbnail
    Renders dynamic Catenary and Bezier curves with animated arrowheads and geometric indicators.
  • line-animated-curvy-arrows thumbnail
    Create elegant, animated curvy arrows using dynamic Bezier curves and iterative point motion.
  • hover-action thumbnail
    Interactive point interaction handling click, drag, and hover events on a dynamic stage.
  • draw-line thumbnail
    Interactive line drawing and dynamic Bezier curve generation via mouse movements.
  • drag-point thumbnail
    Interactive drag-and-drop point system with highlighters and dynamic visual feedback.
  • device-orientation thumbnail
    Visualizes real-time device orientation data (spin, pitch, roll) using motion sensors.
  • clip-draw-star thumbnail
    Display a field of stars constrained within a circular clipping mask using canvas gradients.
  • click-create-line-length-present thumbnail
    Click-hold to draw lines that automatically display their length as a labels along the path.
  • click-create-line-length-present-2 thumbnail
    Click-hold to draw lines with real-time length labels and dynamic arc angle measurements.
  • click-create-example thumbnail
    Create and manage dynamic points using click-and-drag interactions on a main stage.
  • click-create-2 thumbnail
    Click to spawn and connect dynamic points on a canvas with real-time dragging and drawing.
  • click-arc thumbnail
    Create dynamic circular arcs that trigger point splitting and visual feedback upon completion.
  • chars-example thumbnail
    Render dynamic text and characters on a main stage using the Polypoint engine.
  • candle-flame-shape thumbnail
    Generates dynamic flame and teardrop shapes using Bezier curves based on origin point geometry.
  • None
  • blur-example thumbnail
    A dynamic canvas stage featuring draggable points, text rendering, and interactive stroke effects.
  • bilko-twelve thumbnail
    Interactive Bezier egg shape with draggable control points and dynamic distance tracking.
  • Generates dynamic arc and line loops by calculating concave angles between point radii.
  • Renders smooth arc-based paths and dynamic bisecting lines with interactive dragging features.
  • line-spline-rider thumbnail
    Simulate a dynamic 3D-style physics demo where dots bounce and reflect off a curved geometric line.
  • Manage and render multiple concurrent scenes on a single canvas using a shared base class.
  • cullbox thumbnail
    A dynamic particle theater that culls screen-edge points and reacts to point velocity.
  • earth-sun thumbnail
    A dynamic celestial visualization of the Sun and Earth with interactive scaling and dragging.
  • screenshot-example thumbnail
    Capture and export your stage visuals instantly with full and cropped image download methods.
  • limit-projection thumbnail
    Simulate dynamic line projections and intersection math using interactive point-based geometry.
  • mouse-indicator thumbnail
    Display real-time mouse coordinates and smoothed speed data via a reactive UI widget indicator.
  • click-draw-line-box thumbnail
    Create a bounding box by click-dragging to select multiple points and manage them with handles.
  • tiling-1 thumbnail
    Generate complex geometric patterns like triangular, hexagonal, and cubic grids of points.
  • locked-coupling-points thumbnail
    One-way synchronization: updates flow from the primary node to coupled points without feedback.
  • coupling-old thumbnail
    Sync and link multiple points with relative offsets for real-time, bidirectional updates.
  • bezier-spline-a thumbnail
    None
  • bezier-spline-b thumbnail
    None
  • curve-line-comb thumbnail
    None
  • little-walkers-nn thumbnail
    None
  • pointlock-demo-between thumbnail
    None
  • pointlock-demo-radial thumbnail
    None
  • pointlock-demo-ray thumbnail
    Anchor points together using a ray lock that reacts to manual dragging actions.
  • pointlock-demo thumbnail
    Interact with a draggable point that locks its orientation and shows a visual indicator.
  • split-pointlist thumbnail
    Show a collection of draggable points linked by smooth purple curves.
  • None