MColor

MColor[ hexpr ]
returns the user defined color of hexpr.
  • Value is extracted from descriptor "Color" of hexpr.
  • Note that by default, descriptor "Color" is not defined. It is used for representation purposes if the user want to define specific color sheme.
In[1]:=
Click for copyable input
Loads a sample model
In[2]:=
Click for copyable input
Out[2]=
Defines a function giving a color depending of residue label:
In[3]:=
Click for copyable input
Defines a color for each residue:
In[4]:=
Click for copyable input
Represents the chain using the "Color" descriptor:
In[5]:=
Click for copyable input
Out[5]=
 
Defines a function giving a color depending of atom label:
In[1]:=
Click for copyable input
Defines a color for each atom:
In[2]:=
Click for copyable input
Represents the chain using the "Color" descriptor:
In[3]:=
Click for copyable input
Out[3]=