{"id":0,"registry":{"0":{"submorphs":[],"scripts":[],"id":"F94732FF-4596-46A0-8A9A-55F8B60FD3BC","shape":{"__isSmartRef__":true,"id":1},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"__serializedExpressions__":["_Position"],"showsHalos":false,"name":"RadialFill","partsBinMetaInfo":{"__isSmartRef__":true,"id":2},"eventHandler":{"__isSmartRef__":true,"id":4},"scriptAnnotations":{"__isSmartRef__":true,"id":5},"derivationIds":[2609],"_ClipMode":"visible","_Rotation":0,"_Scale":1.01,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(0.0,0.0)"},"1":{"__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"_BorderWidth":1,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(232.0,174.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"lively.morphic.Gradient.create({\n  focus: lively.pt(0.5,0.3),\n  stops: [{\n    color: Color.rgb(243,243,243),\n    offset: 0\n  },{\n    color: Color.rgb(204,204,204),\n    offset: 0.8\n  }],\n  type: \"radial\"\n})","_Padding":"lively.rect(0,0,0,0)"},"2":{"partsSpaceName":"PartsBin/Backgrounds/","comment":"Click on this morph to put a radial gradient in its owner.\nIf it is in the world, then it will set the world's fill.\nA good example of how to create a radial fill","migrationLevel":8,"partName":"RadialFill","__serializedExpressions__":["lastModifiedDate"],"changes":[{"__isSmartRef__":true,"id":3}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Wed Sep 05 2012 16:01:34 GMT-0700 (PDT)\")"},"3":{"__serializedExpressions__":["date"],"author":"Dan","message":"no comment","id":"4953081E-61D4-47C8-BE79-22C3FB8C860F","date":"new Date(\"Sat Sep 21 2013 09:40:38 GMT-0700 (PDT)\")"},"4":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5":{"onMouseDown":{"__isSmartRef__":true,"id":6},"onClick":{"__isSmartRef__":true,"id":7},"getStyle":{"__isSmartRef__":true,"id":8},"getBackgroundStyle":{"__isSmartRef__":true,"id":9},"onrestore":{"__isSmartRef__":true,"id":10}},"6":{"__serializedExpressions__":["time"],"user":"markoroeder","time":"new Date(\"Mon Jul 25 2011 10:41:41 GMT-0700 (PDT)\")"},"7":{"__serializedExpressions__":["time"],"user":"markoroeder","time":"new Date(\"Mon Jul 25 2011 10:58:24 GMT-0700 (PDT)\")"},"8":{"__serializedExpressions__":["time"],"user":"markoroeder","time":"new Date(\"Mon Jul 25 2011 10:49:07 GMT-0700 (PDT)\")"},"9":{"__serializedExpressions__":["time"],"user":"markoroeder","time":"new Date(\"Mon Jul 25 2011 10:58:38 GMT-0700 (PDT)\")"},"10":{"__serializedExpressions__":["time"],"user":"markoroeder","time":"new Date(\"Mon Jul 25 2011 10:58:08 GMT-0700 (PDT)\")"},"11":{"onrestore":{"__isSmartRef__":true,"id":12},"onClick":{"__isSmartRef__":true,"id":19},"getBackgroundStyle":{"__isSmartRef__":true,"id":22}},"12":{"varMapping":{"__isSmartRef__":true,"id":13},"source":"function onrestore() {\n    $super();\n    this.setFill(this.getBackgroundStyle());\n}","funcProperties":{"__isSmartRef__":true,"id":18},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"13":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14}},"14":{"$super":{"__isSmartRef__":true,"id":15}},"15":{"varMapping":{"__isSmartRef__":true,"id":16},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world)\n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":17},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16":{"obj":{"__isSmartRef__":true,"id":0},"name":"onrestore"},"17":{},"18":{"__serializedExpressions__":["timestamp"],"user":"Dan","tags":[],"timestamp":"new Date(\"Sat Sep 21 2013 09:34:03 GMT-0700 (PDT)\")"},"19":{"varMapping":{"__isSmartRef__":true,"id":20},"source":"function onClick(evt) {\n    this.owner.setFill(this.getBackgroundStyle());\n}","funcProperties":{"__isSmartRef__":true,"id":21},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20":{"this":{"__isSmartRef__":true,"id":0}},"21":{"__serializedExpressions__":["timestamp"],"user":"Dan","tags":[],"timestamp":"new Date(\"Sat Sep 21 2013 09:34:03 GMT-0700 (PDT)\")"},"22":{"varMapping":{"__isSmartRef__":true,"id":23},"source":"function getBackgroundStyle() {\n    return new lively.morphic.RadialGradient(\n        [\n            {offset: 0, color: Color.gray.lighter(2)},\n            {offset: 0.8, color: Color.gray}\n        ],\n        pt(0.5,0.3)\n    );\n}","funcProperties":{"__isSmartRef__":true,"id":24},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"23":{"this":{"__isSmartRef__":true,"id":0}},"24":{"__serializedExpressions__":["timestamp"],"user":"Dan","tags":[],"timestamp":"new Date(\"Sat Sep 21 2013 09:34:03 GMT-0700 (PDT)\")"},"isSimplifiedRegistry":true}}