Update color for nodes

This commit is contained in:
Ivan Danyliuk 2018-06-20 17:49:18 +02:00
parent 5b754a4355
commit 48cf8ee564
No known key found for this signature in database
GPG Key ID: 97ED33CE024E1DBF
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ var initGraph = function () {
const color = colorAccessor(node);
nodeMaterials[idx] = new THREE.MeshStandardMaterial({
color: colorStr2Hex('#00ff00'),
color: colorStr2Hex(color),
transparent: false,
opacity: 0.75
});

View File

@ -116,7 +116,7 @@ var initGraph = function () {
const color = colorAccessor(node);
nodeMaterials[idx] = new THREE.MeshStandardMaterial({
color: colorStr2Hex('#00ff00'),
color: colorStr2Hex(color),
transparent: false,
opacity: 0.75
});