Waterglass Effect with KineticJS
I needed to code a Waterglass fill effect for a project and this seemed to be a good KineticJS beginner example and a nice topic for a new blog post. I think especially the image preloader is a good learning example. Checkout the demo! You can view the running demo on jsfiddle and play live ...
Debug SimpleXML objects with Twig
Using SimpleXML objects in Twig templates sucks.. especially with older Twig versions. To at least debug them, I’ve added a custom twig filter with the following method:
|
1 2 3 4 5 6 7 |
public function debugSimpleXml($simpleXmlObject) { $json = json_encode($simpleXmlObject); $array = json_decode($json, true); echo '<pre>'; var_dump($array); echo '</pre>'; } |
The “magic” happens on line 3, the second attribute set to “true”, converts returned objects into associative arrays.
Browser based classic Sierra Adventure Games
If you are like me, you love those old Sierra PC Games like Space Quest, Larry, Kings Quest and so on. Martin Kool, a crazy dutch guy ported some of the games for your browser completely based on XHTML/CSS and JS. At the moment he work on a iPad port of Space Quest. check this ...
Plasma Effect with Processing
I allways wanted to code “Plasma”, a psychedelic color palette effect. A FX seen a lot in Demos of the good old C-64 and Amiga days. I didn’t found any good example on the net, but a friend of mine gave me some hints and so I did it. The example should be easy to ...
