High-Performance Procedural Cartography with Canvas2DHigh-Performance Procedural Cartography with Canvas2D
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
A procedural shaded-relief cartographer's table; export the map as PNG.
I built this project to test A procedural shaded-relief cartographer's table; export the map as PNG. The core engineering challenge was sustaining uncompromised 60 FPS rendering using Canvas2D while handling continuous user interaction without framework overhead.
WHAT I WAS TESTING: I focused on two core engineering benchmarks:
Real-time topographic contour line extraction using Marching Squares
Mountain ridge carving and hydrographic river basin generation
THE TECHNICAL SIDE: Combines domain-warped fractional brownian motion (fBm) with Marching Squares contour generation. Renders vintage parchment styled topographic maps with seeded coordinates. Everything executes in the browser using Canvas2D, Procedural Cartography, Contour Line Marching Squares. No third-party frameworks, no heavy runtime bundles, and zero external tracking.
WHAT I LEARNED: Contour line marching squares often generated disconnected micro-segments. Stitching adjacent line segments into continuous polyline paths allowed smooth canvas stroke rendering. Finding the sweet spot between mathematical precision and frame budget took careful profiling, but the result runs at a steady 60 FPS even on modest hardware.
TRY IT YOURSELF: The live build is deployed on Netlify. Open it in your browser, test the controls, and observe the render response times.
If you are building high-performance 3D, physics, or creative web systems and want to collaborate, reach out here on Contra.
Puffs's avatar
PuffsBD logo
Unique💯
Dim's avatar
I love this
Senatix's avatar
Senatix Wellness logo
You deserve a follow bro, excellent interactive webpage.
Samin's avatar
Thank you! Do enjoy my rest of the projects😊
Ayrin's avatar
The interface is dynamic and engaging, yet it never compromises on usability. Nice job.
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started