Lively Kernel canvas
// this script is evaluated on world load
ClockLayers40true
truetruetrue
ContextJS18nulltruetrue
-TheTokyoLayerisstructurallyactivatedintheyellowMorph-DragingtheClockfromBerlintoTokyochangesimplicitlytheirbehavior203true
Europe18
withLayers:[UncolorizeLayer]
Berlin18
withLayers:[BackwardsLayer]
129falsenull
19falsenull
29falsenull
39falsenull
49falsenull
59falsenull
69falsenull
79falsenull
89falsenull
99falsenull
109falsenull
119falsenull
5.776748935892565
0.2059488517353309
-6.073745796940266
10009.377387700690198
100010.02097550190886
100025.412412139038214
10000
10007.174194874177339
100020.01139096790121121
Asia18
withLayers:[TokyoLayer]
Tokyo18
withLayers:[TokyoLayer]
129falsenull
19falsenull
29falsenull
39falsenull
49falsenull
59falsenull
69falsenull
79falsenull
89falsenull
99falsenull
109falsenull
119falsenull
9.441940365080656
0.2059488517353309
6.073745796940266
10009.377387700690198
100010.02097550190886
100025.412412139038214
10000
10007.174194874177339
nullnullnullnull10007.410403543846932
nullnull100014.62156516186929121
cop.create("TokyoLayer").refineClass(ClockMorph,{gettimeZoneOffset(){return8},setHands:function(proceed){proceed();}})cop.create("ColorizeLayer").refineClass(ClockMorph,{setHands:function(proceed){proceed();vartimeNow=newDate();varsecond=timeNow.getUTCSeconds();this.setFill(Color.wheel(60)[second])}})cop.create("UncolorizeLayer").refineClass(ClockMorph,{setHands:function(proceed){proceed();this.setFill(Color.white)}})cop.create("BackwardsLayer").refineClass(ClockMorph,{setHands:function(proceed){proceed();vartimeNow=newDate();varsecond=timeNow.getUTCSeconds();this.seconds.setRotation(second/-60*2*Math.PI);}})$morph("Berlin").setWithLayers([BackwardsLayer])$morph("Tokyo").setWithLayers([TokyoLayer])$morph("Europe").setWithLayers([UncolorizeLayer])$morph("Asia").setWithLayers([ColorizeLayer])39truetruefalsetrue
truetrue
false00.11
true
false
true
nullfalsetruenull
Workspacefalsenulltruefalse
false
falsenullfalsefalsenullnullnullnullfalse
null71