Anders and Briegel in Python
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

35 rindas
826B

  1. var textures = {};
  2. var materials = {};
  3. // Load the site texture from the data URI
  4. function loadMaterials(argument) {
  5. textures.sprite = new THREE.Texture(document.getElementById("ball"));
  6. textures.sprite.needsUpdate = true;
  7. var lineStyle = {
  8. color: "gray",
  9. transparent: false,
  10. linewidth: 1
  11. };
  12. materials.edge = new THREE.LineBasicMaterial(lineStyle);
  13. var pointStyle = {
  14. color: 0xcccccc,
  15. size: 0.1,
  16. map: textures.sprite,
  17. alphaTest: 0.5,
  18. transparent: true,
  19. };
  20. materials.point = new THREE.PointsMaterial(pointStyle);
  21. var qubitStyle = {
  22. size: 0.8,
  23. map: textures.sprite,
  24. alphaTest: 0.5,
  25. transparent: true,
  26. color: "red"
  27. };
  28. materials.qubit = new THREE.PointsMaterial(qubitStyle);
  29. }