particle.js 475 B

123456789101112131415
  1. (function(window) {
  2. function ParticleView(modelObject){
  3. //this.graphics.beginFill("blue").drawCircle(0, 0, window.cell_size * 0.15 / 2);
  4. this.model = modelObject;
  5. }
  6. ParticleView.prototype = new createjs.Bitmap("img/higgs/higgs.gif");
  7. ParticleView.prototype.update = function(){
  8. this.x = cell_size * this.model.position.x;
  9. this.y = cell_size * this.model.position.y;
  10. }
  11. window.ParticleView = ParticleView;
  12. }(window));