var color_twenty_two_set = new Kinetic.Shape({ sceneFunc: function(ctx) { ctx.fillStrokeShape(this); }, fill: '#fff', stroke: '#fff', strokeWidth: .25, id: 'color_twenty_two', visible: }); var color_twenty_two_high_set = new Kinetic.Shape({ sceneFunc: function(ctx) { ctx.fillStrokeShape(this); }, fill: '#45cbde', stroke: '#45cbde', strokeWidth: .25, id: 'color_twenty_two_high', visible: false }); imageObj = new Image(); imageObj.src = ''; var color_twenty_two_clip_set = new Kinetic.Shape({ sceneFunc: function(ctx) { ctx.fillStrokeShape(this); }, id: 'color_twenty_two_clip', fillPatternImage: imageObj, visible: false });