OZONE Asylum
Forums
DHTML/Javascript
Tilt-Shift photo effect in Canvas
This page's ID:
30755
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Hey poi, I've thought of an optimisation for the tilt-shift, instead of using 240 drawImage calls you could draw a gradient over 'dof' from transparent to white and back with globalCompositionOperation set to destination-out. Then the temporary canvas could be pasted to the output with just one drawImage. @racerX FWIW I put that skew function back online: http://www.benjoffe.com/code/dev/canvas_skew/ I also came across a similar script somebody has written which uses some very clever tricks to simulate a perspective for a texture (it seems to be an approximation hack but it looks quite seamless): http://acko.net/blog/projective-texturing-with-canvas
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »