I wanted to share a simple one I created, which creates spiral designs. The example was pretty simple to put together, but is fun to play with, and can make some pretty nice patterns / spirals. I have uploaded a couple of images that I have created using the example: <! --more--> and put together a time lapse video showing a spiral being created: You can view the example at: I have also posted all of the code in my GitHub Repository. There is no UI to change settings, but you can tweak the designs you create by passing in some URL params, like so: /index.html? Minradius : The minimum radius of the circle that will be drawn.maxradius : The maximum radius of the circle that will be drawn.
If minradius and maxradius are different, the circle radius will tween back and forth between the sizes. Getting Started with EaselJS. One of the features of HTML5 that developers are most excited about is the Canvas element.
The Canvas element essentials provides a bitmap canvas for dynamically rendering shapes and bitmap graphics. It is very similar to the Flash Player's Bitmap and BitmapData classes. However, working with the Canvas element can be difficult, especially if you need to manage, update and or / animate multiple shapes and bitmaps. Unlike the Flash Player, the Canvas element does not have a concept of a display list or individual items to render.
WebGL WebGLU - WebGL helpers Color Math. PixelFlow. If you have happen to have been watching my Flickr feed for the past week or two, you have probably noticed that I have been playing around with creating some graphics using Canvas and EaselJS.
What started as a simple EaselJS experiment, quickly morphed into an excuse to build a mini app / example and play around with some of the new HTML5 and CSS3 features. The example I created (named PixelFlow) is a simple example / app that allows you to choose an image, and then create some designs using the colors from the image. The core drawing functionality is built about the HTML5 canvas element and the EaselJS library. It also leverages CSS3 transitions and transformation for animating the UI elements (loading and unloading). You can play around with the example yourself at: <! Mikechambers.com/files/html5/easeljs/PixelFlow/ I built the example with touch in mind, and thus it has support for touch on Android and iOS devices. Follow Drone. As I posted the other day, I have been spending some time playing around with dynamic drawing with the HTML5 Canvas element and EaselJS.
I have put together quite a few examples and experiments and will be posting them (along with what I learned from them) over the next couple of weeks. The first example I want to share is a simple one which I call "follow". It basically uses EaselJS to create a snake like shape that follows you mouse. Here is a screen shot of a graphic I created with it: Here is an inline version of the example that you can play with. You can view the example fullscreen (which looks better) here. You can view, as well as download all of the code from my GitHub repository (released under an MIT License). Im going to write a series of posts over the next couple of days on a couple of things I learned while building this example.