Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


i cant under stand some point

//On mouse events on the canvas
  lastEvent = e;
  mouseDown = true;
  //Draw lines
  if(mouseDown) {
    context.moveTo(lastEvent.offsetX, lastEvent.offsetY);
    context.lineTo(e.offsetX, e.offsetY);
    context.strokeStyle = color;
    lastEvent = e;

e=??????? context.lineTo(e.offsetX, e.offsetY); ????/

can some one explane this section very slowly and line by line because im very biggner