gravnetic / canvas-shaded-relief

Demo of simple shaded relief with javascript and canvas.

Home Page:http://awoodruff.github.io/canvas-shaded-relief/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

canvas-shaded-relief

Demo of simple shaded relief in the browser with javascript and canvas, more or less copied from experiments I did in Flash some years back. (The math is explained in that post.) It takes a grayscale DEM image, calculates luminance pixel-by-pixel, and draws the resultant shaded relief along with some hypsometric tints to new canvas element. Code is all in index.html.

Here, look, it totally works.

It's not really useful (slow for images much larger than this), but it's kind of fun!

Input:

Output:

About

Demo of simple shaded relief with javascript and canvas.

http://awoodruff.github.io/canvas-shaded-relief/


Languages

Language:HTML 100.0%