neurosynth / nsviewer

Neurosynth viewer
28 stars 22 forks source link

Layers in different colors #5

Closed adelavega closed 11 years ago

adelavega commented 11 years ago

Might be a good idea to have the viewer load different functional layers in different colors by default. I'd fix it if i knew Coffee Script!

tyarkoni commented 11 years ago

Sounds like an excellent opportunity to learn CoffeeScript!

tyarkoni commented 11 years ago

This is now addressed in b3f0dd9a9b. I added a getNextColor() method to the LayerList class that returns the next color palette in the list that's not currently in use by a visible layer, or (if all palettes are in use) returns a random color.