Closed liuyx599 closed 1 year ago
This is by design. The code in the index.js file sets all loaded neurons to red. https://github.com/JaneliaSciComp/SharkViewer/blob/f060680ce586c55de19557ee7e61e0204ef8bbea/lib/index.js#L13 If you don't want that to happen, you need to modify the line as follows
s.loadNeuron('foo', null, swc, true, false, true);
When I load test cases
old\swc\test.swc
in https://janeliascicomp.github.io/SharkViewer/, all parts of the rendered neurons are red, while the default rendered example neurons on the homepage can be marked with different parts using different colors. The content of the test SWC file is as follows: