Skip to content

Commit

Permalink
Change to a nicer version of blue and adjust the slice navigator colors.
Browse files Browse the repository at this point in the history
  • Loading branch information
haehn committed Sep 20, 2013
1 parent 3309e9c commit 88e8429
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion io/parser.js
Expand Up @@ -1247,7 +1247,7 @@ X.parser.prototype.reslice = function(object) {
object._childrenInfo[2]._sliceNormal = _sliceNormal;

// COLOR
_color = [ 0, 0, 1 ];
_color = [ 0, 0.392, 0.804 ];
object._childrenInfo[2]._color = _color;

// UPDATE SLICE INFO
Expand Down
12 changes: 6 additions & 6 deletions visualization/renderer2D.js
Expand Up @@ -747,22 +747,22 @@ X.renderer2D.prototype.xy2ijk = function(x, y) {
_currentSlice = this._slices[parseInt(_volume['indexY'], 10)];
_sliceWSpacing = _currentSlice._widthSpacing;
_sliceHSpacing = _currentSlice._heightSpacing;
this._orientationColors[0] = 'yellow';
this._orientationColors[1] = 'green';
this._orientationColors[0] = 'red';
this._orientationColors[1] = 'blue';

} else if (this._orientation == "Z") {
_currentSlice = this._slices[parseInt(_volume['indexZ'], 10)];
_sliceWSpacing = _currentSlice._widthSpacing;
_sliceHSpacing = _currentSlice._heightSpacing;
this._orientationColors[0] = 'yellow';
this._orientationColors[1] = 'red';
this._orientationColors[0] = 'red';
this._orientationColors[1] = 'green';

} else {
_currentSlice = this._slices[parseInt(_volume['indexX'], 10)];
_sliceWSpacing = _currentSlice._heightSpacing;
_sliceHSpacing = _currentSlice._widthSpacing;
this._orientationColors[0] = 'red';
this._orientationColors[1] = 'green';
this._orientationColors[0] = 'green';
this._orientationColors[1] = 'blue';

var _buf = _sliceWidth;
_sliceWidth = _sliceHeight;
Expand Down

0 comments on commit 88e8429

Please sign in to comment.