Skip to content

patricklbell/jsjfa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jump Flood Algorithm

The letters JFA after calculating a distance transform

The jump flood algorithm is used to calculate the distance from a pixel to the closest valid pixel in a source image on the GPU. This repository implements the jump flood algorithm in WebGL, a demo can be seen here, Simply draw some shapes with the mouse and press play to see the steps the algorithm takes, pressing calculate distance transform darkens each pixel based on how far they are from their source pixel.

Dots after JFA forming a Voronoi diagram Using dots as a source image creates a Voronoi diagram.

About

Demonstrates Jump Flood Algorithm in JS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published