added method to invert colormap
This commit is contained in:
parent
d01a8bdf8c
commit
4fda285e08
|
@ -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',\
|
||||
|
|
Loading…
Reference in New Issue