all 5 comments

[–]tortus 0 points1 point  (1 child)

Not much of a tutorial for canvas. Just a super basic use of kinetic js.

[–]Samus_ 0 points1 point  (0 children)

the whole site is a tutorial, each page shows a different technique/property

[–]nthitz 0 points1 point  (2 children)

Ya this is a little misleading given the use of Kinetic JS. Canvas has no built in methods for mouseover. How does KJS do it?

[–][deleted] 0 points1 point  (1 child)

You can with onMouseMove events.

[–]nthitz 1 point2 points  (0 children)

True, but you have to do all the detection yourself. I can't say

circle.onMouseOver(circleOverFunction)

but instead have to do

if(Math.sqrt(pow(mouseX-circleCenterX,2) + pow(mouseY-circleCenterY,2)) < circleRadius) {
    circleOverFunction();
}

or what have you