Skip to content

Commit 46672f5

Browse files
committed
SOF-7354: more experiment with colors x4
1 parent 173af7c commit 46672f5

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

src/mixins/atoms.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export const AtomsMixin = (superclass) =>
113113
} else {
114114
// odd labels
115115
hue = atomHSL.h - ((label + 1) * 0.1) / 2;
116-
saturation = atomHSL.s - ((label + 1) * 0.1) / 2;
116+
saturation = atomHSL.s + ((label + 1) * 0.1) / 2;
117117
}
118118

119119
// hue is cyclic
@@ -126,7 +126,6 @@ export const AtomsMixin = (superclass) =>
126126
}
127127

128128
saturation = Math.max(0, Math.min(1, saturation));
129-
new THREE.Color(atomColor).setHSL(atomHSL);
130129
sphereMesh.material.emissiveIntensity = 0.25;
131130
sphereMesh.material.emissive.setHSL(hue, saturation, atomHSL.l);
132131
}
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)