| javascript Programming Glossary: that.xHow to “properly” create a custom object in JavaScript? http://stackoverflow.com/questions/1595611/how-to-properly-create-a-custom-object-in-javascript  x this.y y this.toString function return 'Shape at ' that.x ' ' that.y function Circle x y r var that this Shape.call this.. of using the new operator function Shape x y var that that.x x that.y y that.toString function return 'Shape at ' that.x.. x that.y y that.toString function return 'Shape at ' that.x ' ' that.y return that function Circle x y r var that Shape.. 
 How to drag images / objects within Canvas? http://stackoverflow.com/questions/18333936/how-to-drag-images-objects-within-canvas  img.src src this.update function if mousePressed  var left that.x  var right that.x img.width  var top that.y  var bottom that.y.. function if mousePressed  var left that.x  var right that.x img.width  var top that.y  var bottom that.y img.height  if..  var bottom that.y img.height  if drag  startX mouseX that.x  startY mouseY that.y   if mouseX right mouseX left mouseY bottom.. 
 |