MCPcopy Create free account
hub / github.com/Milkyroad/SCiPNET / addParticles

Function addParticles

public/src/ex_file/scripts/dna.js:41–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 };
40
41 const addParticles = particleArray => {
42 const geometry = new THREE.Geometry();
43 particleArray.forEach(particle => {
44 geometry.vertices.push(particle)
45 });
46 const material = new THREE.PointsMaterial({
47 size: 0.2,
48 opacity: 0.9,
49 alphaTest: 0.4,
50 transparent: true
51 });
52 material.color.setHex('0x'+color.substring(1));
53 particles = new THREE.Points(geometry, material);
54 scene.add(particles);
55 };
56
57 const getPoints = p => {
58 const {

Callers 1

dna.jsFile · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected