New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

Start learning with our library of video tutorials taught by experts. Get started

EaselJS First Look
Illustration by
Watching:

Getting to know EaselJS and CreateJS


From:

EaselJS First Look

with Ray Villalobos

Video: Getting to know EaselJS and CreateJS

Before we get started working with EaselJS, let's take a minute to discuss what it is and how it relates to HTML5's Canvas. EaselJS is part of a group of JavaScript libraries called CreateJS. The libraries can help you build interactive experiences by providing functionality on top of HTML5. That makes it easier to do things like animation, tweening and working with sound. The libraries can be used as stand-alone modules or worked together to help you build powerful applications and includes EaselJS, TweenJS, SoundJS, PreloadJS and Zoe.

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
please wait ...
EaselJS First Look
1h 28m Beginner Sep 21, 2012

Viewers: in countries Watching now:

EaselJS is a free JavaScript library that makes creating interactive web content for HTML5 more straightforward and intuitive. This course transitions web designers, animators, and content creators who may be used to working with Adobe Flash and ActionScript to this new open web standard. Author Ray Villalobos first explains the capabilities of the EaselJS framework and the HTML5 Canvas element, and what they mean for web design. The rest of the course shows how to use EaselJS's helper classes and hierarchal display list to load images, draw, animate, and handle mouse input from visitors.

Topics include:
  • Installing EaselJS
  • Understanding how Canvas draws and animates
  • Drawing lines and strokes
  • Drawing with graphic primitives
  • Using the chaining and compacting commands
  • Animating shapes
  • Working with text
  • Importing bitmaps and vector graphics
  • Working with sprite sheets
  • Handling mouse events
Subjects:
Web Web Design Web Development
Software:
CreateJS EaselJS
Author:
Ray Villalobos

Getting to know EaselJS and CreateJS

Before we get started working with EaselJS, let's take a minute to discuss what it is and how it relates to HTML5's Canvas. EaselJS is part of a group of JavaScript libraries called CreateJS. The libraries can help you build interactive experiences by providing functionality on top of HTML5. That makes it easier to do things like animation, tweening and working with sound. The libraries can be used as stand-alone modules or worked together to help you build powerful applications and includes EaselJS, TweenJS, SoundJS, PreloadJS and Zoe.

So what does EaselJS do? EaselJS provides an easy way to handle and manage a list of objects in the Canvas. HTML 5 Canvas by itself is excellent for drawing, but not for storing or animating existing objects. EaselJS gives you an easy way to access a list of items on the Canvas by creating a master stage that allows you to nest objects, so that you can easily access them. It adds access to input devices and makes it easier to deal with events like drag and drop or drawing on the screen.

If you're familiar with Adobe Flash then making the transition to EaselJS will be very easy, since the tool uses a similar approach. So let's take a look at how EaselJS works with the Canvas. The Canvas provides what's called an immediate drawing mode for graphics. When you create a Canvas object you're creating an area in which pixels can be drawn. This is really different than working with a traditional animation tool where you draw an object and tell the computer the beginning and ending points of how that object should move.

With Canvas you're not drawing objects, you're painting pixels. If you create a triangle and decide to move it you can't just tell Canvas to move it to a new position. You have to redraw the whole triangle at different positions in every frame. That means that programmers are in charge of managing objects onscreen. You have to calculate the X and Y positions of every point in a triangle as it moves across the screen. With EaselJS, you work in a routined drawing mode. It's like what you do in a Adobe Flash.

When you create an object, you tell Flash where that object should be and how it should animate overtime. EaselJS handles the drawing and updating of the Canvas for you. That makes it easier to build apps like games and animations. HTML5 Canvas is an amazing construct, but working with pure Canvas code can be really challenging. You're responsible for drawing objects as well as the stage for every frame in an animation, a tool like EaselJS makes it much more manageable.

There are currently no FAQs about EaselJS First Look.

 
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.
Upgrade now


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

join now Upgrade now

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed EaselJS First Look.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.