By Zevan | August 8, 2018
Awhile back I thought it would be interesting to add some quick fake lighting to a personal project of mine - that for lack of a better description is a windows management system.
Here is a screenshot of the windows management system with lighting turned on:
Here is a video of me using the system:
I whipped up [...]
By Zevan | August 3, 2018
For some reason I decided to port a snippet from AS3 to JS. Chose this one:
http://actionsnippet.com/?p=2969#comment-5674
…pretty much at random.
Here is the port in a pen:
See the Pen Closet Point on a Line by Zevan Rosser (@ZevanRosser) on CodePen.
This is actually a port of a port from this old thread:
http://www.gamedev.net/topic/444154-closest-point-on-a-line/
By Zevan | August 3, 2018
Awhile back, I wrote some collision detection code that blitted existing interactive SVG to Canvas and then used the pixel data to figure out various aspects of the relationships between arbitrary SVG nodeTypes. A really simple trick I used can be seen in this pen:
See the Pen pJZdav by Zevan Rosser (@ZevanRosser) on CodePen.
The trick [...]
Posted in Graphics, html5, javascript, misc, pixel manipulation, svg | Tagged blitting, canvas, canvg, foreignObject, javascript, svg, trick |
By Zevan | August 1, 2018
This is a quick example showing how to give an input field “memory”. After you type something once and hit return it will be stored in `localStorage`. String values are ranked based on how often they are selected/entered. I know people don’t like jQuery these days, seems this pen is from a time when I [...]