Raster Playground

A 512 × 512 canvas partitioned into storage tiles. Move the dirty rectangle and change tile size to see which tiles are candidates for updating.

The dashed rectangle is a 150 × 105 pixel region that may have changed. Filled cells are the entire tiles intersecting that region. For RGBA8, each candidate pixel accounts for four bytes in the logical storage estimate.

Keep the initial position and switch from 64 to 256 px tiles. The number of candidates drops from six to two, but their combined storage grows from 98,304 to 524,288 bytes. Move the rectangle across a grid boundary next: the brush area stays fixed while the candidate set changes.

4 of 16 tiles selected · 262,144 candidate bytes (RGBA8).

These tiles belong to the application's storage layout. The byte count is a conservative estimate of candidate data; the renderer determines the actual work.

Polygon Lab

Move a vertex or reverse the traversal order. The absolute area stays unchanged when winding is reversed, but the signed shoelace area changes sign.

The numbered vertices define a traversal, not just a set of positions. The shoelace formula adds xᵢyᵢ₊₁ − xᵢ₊₁yᵢ for each edge, closes the last edge back to the first, then divides the sum by two.

Reverse the winding without moving the vertex: the initial signed area goes from 8,830 to −8,830 square coordinate units, while the triangle stays in place. Then move the vertex to change the geometry itself. Winding is useful when interpreting polygon boundaries, but area alone cannot validate coverage or intersections.

123Signed area: 8830 px² · Absolute area: 8830 px² · Clockwise (screen coordinates).

In these screen coordinates, Y increases downwards, so positive signed area corresponds to clockwise winding. This experiment assumes a simple polygon.