added method to invert colormap

This commit is contained in:
Christoph Kords 2013-05-28 12:18:25 +00:00
parent d01a8bdf8c
commit 4fda285e08
1 changed files with 9 additions and 1 deletions

View File

@ -308,7 +308,15 @@ class Colormap():
self.left = left.expressAs('MSH')
self.right = right.expressAs('MSH')
# ------------------------------------------------------------------
def invert(self):
temp = self.left
self.left = self.right
self.right = temp
return self
# ------------------------------------------------------------------
def export(self,name = 'uniformPerceptualColorMap',\