var color_elastic_set = new Kinetic.Shape({ sceneFunc: function(ctx) { ctx.fillStrokeShape(this); }, fill: '#FFFFFF', stroke: '#FFFFFF', strokeWidth: .25, id: 'color_elastic' }); var color_elastic_high_set = new Kinetic.Shape({ sceneFunc: function(ctx) { ctx.fillStrokeShape(this); }, fill: '#45cbde', stroke: '#45cbde', strokeWidth: .25, id: 'color_elastic_high', visible: false });