more docs, especially for Util and Tween

This commit is contained in:
Eric Rowell
2013-05-18 10:40:05 -07:00
parent 993ffd7b0e
commit 2ea5f83204
7 changed files with 219 additions and 33 deletions

View File

@@ -1,4 +1,7 @@
(function() {
// constants
var HASH = '#';
Kinetic.Util.addMethods(Kinetic.Layer, {
_initLayer: function(config) {
this.nodeType = 'Layer';
@@ -26,7 +29,7 @@
// this indicates that a hit pixel may have been found
if(p[3] === 255) {
colorKey = Kinetic.Util._rgbToHex(p[0], p[1], p[2]);
shape = Kinetic.Global.shapes[colorKey];
shape = Kinetic.Global.shapes[HASH + colorKey];
return {
shape: shape,
pixel: p