particles.json.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. window.possible_particles = function(){ return [
  2. {
  3. type: "Higgs",
  4. mass: 125,
  5. charge: 0,
  6. points: 125,
  7. appearence_probabilty: .03,
  8. half_life: 5,
  9. decays: [{particles: ["W", "W"], probability: 1.}],
  10. draw_properties: {
  11. colors: ["hsl(0, 100%, 50%)", "hsl(0, 40%, 50%)"],
  12. ratios: [0, 1],
  13. inner_radius: .03,
  14. outer_radius: .13,
  15. inner_center: {x: .07, y: .07},
  16. outer_center: {x: 0, y: 0}
  17. },
  18. animation_function: function(pv){
  19. createjs.Tween.get(pv, {loop: true})
  20. .to({ scaleX: 0.9, scaleY: 1.1 }, 200)
  21. .to({ scaleX: 1.1, scaleY: 0.9 }, 200);
  22. },
  23. facts:[
  24. "Higgs boson was discovered in 2012 by CMS and ATLAS collaborations at LHC at CERN",
  25. ]
  26. },
  27. {
  28. type: "electron",
  29. mass: 0.0005,
  30. charge: -1,
  31. points: 1,
  32. appearence_probabilty: .03,
  33. draw_properties: {
  34. colors: ["hsl(120, 100%, 50%)", "hsl(120, 40%, 50%)"],
  35. ratios: [0, 1],
  36. inner_radius: .02,
  37. outer_radius: .04,
  38. inner_center: {x: .01, y: .01},
  39. outer_center: {x: 0, y: 0}
  40. },
  41. animation_function: function(pv){
  42. createjs.Tween.get(pv, {loop: true})
  43. .to({ scaleX: 0.9, scaleY: 1.1 }, 200)
  44. .to({ scaleX: 1.1, scaleY: 0.9 }, 200);
  45. },
  46. facts:[
  47. "We still think, that the electron is point-like."
  48. ]
  49. }
  50. ];}