1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
MX.Point = MX.Object3D.extend({ init: function(p){ this.updateChildren = false this.move({ x: p.a, y: 11, z: p.b, width: 20, height: 20, rotationX: PI/2, }) this.el.style.backgroundColor = 'rgb(' + [abs(floor(p.a*30)), 0, abs(floor(p.b*30))] + ')' this.el.style.backfaceVisibility = "visible" this.el.style.borderRadius = "50%" scene.add(this) } })