ground dataspace G { Syndicate.UI.spawnUIDriver(); Syndicate.Timer.spawnTimerDriver(); spawn { var ui = new Syndicate.UI.Anchor(); field this.angle; field this.handX; field this.handY; assert ui.html('#clock', ''+ ''+ ''+ '') when (typeof this.angle === 'number'); on message Syndicate.Timer.periodicTick(1000) { this.angle = ((((Date.now() / 1000) % 60) / 60) - 0.25) * 2 * Math.PI; this.handX = 50 + 40 * Math.cos(this.angle); this.handY = 50 + 40 * Math.sin(this.angle); } } }