In this tutorial we will be exploring the CreateJS suite of libraries. CreateJS is suite of JavaScript libraries and tools for building rich, interactive. The script tag on line 4 includes the EaselJS library in our document so that we can work with it. We have a few options for how we do this: link to a local copy of . Refer to the GitHub repository for complete source code and a demo is available here. Other tutorials can be found on the CreateJS website.

Author: Nebar Tojalabar
Country: Papua New Guinea
Language: English (Spanish)
Genre: Life
Published (Last): 3 March 2011
Pages: 419
PDF File Size: 16.84 Mb
ePub File Size: 5.43 Mb
ISBN: 620-8-74901-232-2
Downloads: 40100
Price: Free* [*Free Regsitration Required]
Uploader: Gardazil

Deploy code to production now. Release to users when ready.

Learn how to separate code deployment from user-facing daseljs releases with LaunchDarkly. Recently I have been attempting to build casual games.

I came across the JavaScript tktorial CreateJSwhich provides a suite of modular libraries that work together or independently to enable interactive content via HTML5. The modular libraries are:. To draw a shape on the canvas, first, we will need to create a Stage object. Stage is the root level container for display objects. We will pass the canvas object, which we created earlier.


EaselJS: Getting Started

tutprial This canvas object will be used by the Stage object for the rendering of display objects. These classes are included in the minified files of each library and are available on the CreateJS namespace.

This can be achieved through the following line of code:. This Shape allows us to display vector graphics on the canvas. Each shape has a Graphics instance which is the interface to the canvas drawing system.

Similarly, the Graphics object provides several functions to create shapes. Take a look at the official documentation to see how to create different shapes.

For other geometrical shapes, refer to the code on GitHub. This function will update the coordinates of shapes at the touch point and redraws the canvas. In my demoI have added a text above the shapes.

This can be done by Text objects of EaselJS. It allows you to change color, alignment, size, font, wrapping, and other settings of Text objects.


EaselJS Tutorial: Getting Started

Refer to the GitHub repository for complete source code and a demo is available here. Thank you for taking the time to read this article. See the original article here. Over a million developers have joined DZone. Introduction to CreateJS — Part 1. In this article, we introduce the JavaScript library suite known as CreateJS, and show you how to make some basic animations using one of it’s component libraries.

Join the DZone community and get the full member experience. The modular libraries are: This can be achieved through the following line of code: Tools and Libraries, Part 3. Opinions expressed by DZone contributors are their own. Web Dev Partner Resources. A Brief Overview of Indigo.

Introduction to CreateJS – Part 1

Test in Production the Netflix Way. From Design to Code: Provides Step-by-Step Guidance to Angular. Integrate Feature Flags in Angular.