Skip to content

akinuri/canvas-pinch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JS Canvas Pinch Effect

Pinch/pucker an image in canvas (StackOverflow)

An attempt at imitating the pinch effect on canvas. The desired effect is the one in Gimp or glfx.js Photoshop one is okay.

Source code for both Gimp and glfx.js is available, but I have no knowledge about WebGL (glfx.js) or C (Gimp). I'm stuck at the moment.

function pinch(canvas, x, y, radius, strength) {
	// code
	return pinchedCanvas;
}

Pinch Effect Comparison

About

JS Canvas Pinch Effect

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published