Skip to content

awoodruff/canvas-shaded-relief

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages