In this chapter, we have discussed how to create a simple painting application from scratch using the mousemove
, mousedown
, and mouseup
events, and it's a good exercise to understand the concept of those events. Then, we learned how to manage mouse events inside each other to draw a line. The addEventListener
and removeEventListener
functions were used to add and remove an event from an object.
Also, we learned how to use the stroke feature in EaselJS to draw lines with a specific color and size. We used the beginStorke
, curveTo
, and moveTo
functions to draw the lines and handle the painting logic.
In the next chapter, we will talk about vector mask and how to create a mask layer in CreateJS.
3.139.97.53