Color

Set Color

Set the Color attribute on the point domain, based on the input Color field. The Selection field limits the setting of the color to the input Selection, with the unselected points keeping their current Color attribute

Outputs

Description Socket
Atomic geometry with an updated Color attribute Atoms

Inputs

Socket Default Description
Atoms None Atomic geometry that contains vertices and edges
Selection True Selection of atoms to apply this node to
Color [0.162, 0.624, 0.196, 1.0] Color to apply to the selected atoms

Color Chain_

Pick colors that are used for each chain_id that is present in the structure. The inputs can also accept fields to generate colors for that chain based on upstream field evaluation. This node is generated on a per-structure basis, so will only be useful for the corresponding structure.

Outputs

Description Socket
The colors based on chain_id Color

Inputs

Socket Default Description
Chain A [0.461, 0.6, 0.24, 1.0] Color to set for Chain A
Chain B [0.24, 0.6, 0.574, 1.0] Color to set for Chain B
... [0.6, 0.24, 0.467, 1.0] Color to set for Chain …

Color Segment_

Outputs

Description Socket
The colors based on entity_id Color

Inputs

Socket Default Description
Segment A [0.461, 0.6, 0.24, 1.0] Color to set for Ligand B
Segment B [0.24, 0.6, 0.574, 1.0] Color to set for Ligand B
... [0.6, 0.24, 0.467, 1.0] Color to set for Ligand …

Color Entity_

Choose the colors for the individual entities in the structure. If there are multiple copies of the same protein or molecule in the structure but in different conformations, it can helpt to color them based on their entity_id rather than individual chain_id values

Outputs

Description Socket
The colors based on entity_id Color

Inputs

Socket Default Description
Entity A [0.461, 0.6, 0.24, 1.0] Color to set for Entity A
Entity B [0.24, 0.6, 0.574, 1.0] Color to set for Entity B
... [0.6, 0.24, 0.467, 1.0] Color to set for Entity …

Color Ligand_

Choose the colors for individual ligands in the structure.

Outputs

Description Socket
The colors based on entity_id Color

Inputs

Socket Default Description
Ligand A [0.461, 0.6, 0.24, 1.0] Color to set for Ligand B
Ligand B [0.24, 0.6, 0.574, 1.0] Color to set for Ligand B
... [0.6, 0.24, 0.467, 1.0] Color to set for Ligand …

Color Element

Choose colors for the individual elements of the periodic table. The first 80 elements are listed, grouped into panels in chunks of 20 elements per panel for better organisation.

Outputs

Description Socket
The selected colors based on the atomic_number Color

Inputs

Socket Default Description
H [1.0, 1.0, 1.0, 1.0] Set the color for the element H
He [0.851, 1.0, 1.0, 1.0] Set the color for the element He
Li [0.8, 0.502, 1.0, 1.0] Set the color for the element Li
Be [0.761, 1.0, 0.0, 1.0] Set the color for the element Be
B [1.0, 0.71, 0.71, 1.0] Set the color for the element B
C [0.565, 0.565, 0.565, 1.0] Set the color for the element C
N [0.188, 0.314, 0.973, 1.0] Set the color for the element N
O [1.0, 0.051, 0.051, 1.0] Set the color for the element O
F [0.565, 0.878, 0.314, 1.0] Set the color for the element F
Ne [0.702, 0.89, 0.961, 1.0] Set the color for the element Ne
Na [0.671, 0.361, 0.949, 1.0] Set the color for the element Na
Mg [0.541, 1.0, 0.0, 1.0] Set the color for the element Mg
Al [0.749, 0.651, 0.651, 1.0] Set the color for the element Al
Si [0.941, 0.784, 0.627, 1.0] Set the color for the element Si
P [1.0, 0.502, 0.0, 1.0] Set the color for the element P
S [1.0, 1.0, 0.188, 1.0] Set the color for the element S
Cl [0.122, 0.941, 0.122, 1.0] Set the color for the element Cl
Ar [0.502, 0.82, 0.89, 1.0] Set the color for the element Ar
K [0.561, 0.251, 0.831, 1.0] Set the color for the element K
Ca [0.239, 1.0, 0.0, 1.0] Set the color for the element Ca
Sc [0.902, 0.902, 0.902, 1.0] Set the color for the element Sc
Ti [0.749, 0.761, 0.78, 1.0] Set the color for the element Ti
V [0.651, 0.651, 0.671, 1.0] Set the color for the element V
Cr [0.541, 0.6, 0.78, 1.0] Set the color for the element Cr
Mn [0.612, 0.478, 0.78, 1.0] Set the color for the element Mn
Fe [0.878, 0.4, 0.2, 1.0] Set the color for the element Fe
Co [1.0, 0.851, 0.561, 1.0] Set the color for the element Co
Ni [0.78, 0.541, 0.541, 1.0] Set the color for the element Ni
Cu [0.784, 0.502, 0.2, 1.0] Set the color for the element Cu
Zn [0.49, 0.502, 0.69, 1.0] Set the color for the element Zn
Ga [0.761, 0.561, 0.561, 1.0] Set the color for the element Ga
Ge [0.4, 0.561, 0.561, 1.0] Set the color for the element Ge
As [0.741, 0.502, 0.89, 1.0] Set the color for the element As
Se [1.0, 0.631, 0.0, 1.0] Set the color for the element Se
Br [0.651, 0.161, 0.161, 1.0] Set the color for the element Br
Kr [0.361, 0.722, 0.82, 1.0] Set the color for the element Kr
Rb [0.439, 0.18, 0.69, 1.0] Set the color for the element Rb
Sr [0.0, 1.0, 0.0, 1.0] Set the color for the element Sr
Y [0.58, 1.0, 1.0, 1.0] Set the color for the element Y
Zr [0.58, 0.878, 0.878, 1.0] Set the color for the element Zr
Nb [0.451, 0.761, 0.788, 1.0] Set the color for the element Nb
Mo [0.329, 0.71, 0.71, 1.0] Set the color for the element Mo
Tc [0.231, 0.62, 0.62, 1.0] Set the color for the element Tc
Ru [0.141, 0.49, 0.49, 1.0] Set the color for the element Ru
Rh [0.039, 0.49, 0.549, 1.0] Set the color for the element Rh
Pd [0.0, 0.412, 0.522, 1.0] Set the color for the element Pd
Ag [0.753, 0.753, 0.753, 1.0] Set the color for the element Ag
Cd [1.0, 0.851, 0.561, 1.0] Set the color for the element Cd
In [0.651, 0.459, 0.451, 1.0] Set the color for the element In
Sn [0.4, 0.502, 0.502, 1.0] Set the color for the element Sn
Sb [0.62, 0.388, 0.71, 1.0] Set the color for the element Sb
Te [0.831, 0.478, 0.0, 1.0] Set the color for the element Te
I [0.58, 0.0, 0.58, 1.0] Set the color for the element I
Xe [0.259, 0.62, 0.69, 1.0] Set the color for the element Xe
Cs [0.341, 0.09, 0.561, 1.0] Set the color for the element Cs
Ba [0.0, 0.788, 0.0, 1.0] Set the color for the element Ba
La [0.439, 0.831, 1.0, 1.0] Set the color for the element La
Ce [1.0, 1.0, 0.78, 1.0] Set the color for the element Ce
Pr [0.851, 1.0, 0.78, 1.0] Set the color for the element Pr
Nd [0.78, 1.0, 0.78, 1.0] Set the color for the element Nd
Pm [0.639, 1.0, 0.78, 1.0] Set the color for the element Pm
Sm [0.561, 1.0, 0.78, 1.0] Set the color for the element Sm
Eu [0.38, 1.0, 0.78, 1.0] Set the color for the element Eu
Gd [0.271, 1.0, 0.78, 1.0] Set the color for the element Gd
Tb [0.188, 1.0, 0.78, 1.0] Set the color for the element Tb
Dy [0.122, 1.0, 0.78, 1.0] Set the color for the element Dy
Ho [0.0, 1.0, 0.612, 1.0] Set the color for the element Ho
Er [0.0, 0.902, 0.459, 1.0] Set the color for the element Er
Tm [0.0, 0.831, 0.322, 1.0] Set the color for the element Tm
Yb [0.0, 0.749, 0.22, 1.0] Set the color for the element Yb
Lu [0.0, 0.671, 0.141, 1.0] Set the color for the element Lu
Hf [0.302, 0.761, 1.0, 1.0] Set the color for the element Hf
Ta [0.302, 0.651, 1.0, 1.0] Set the color for the element Ta
W [0.129, 0.58, 0.839, 1.0] Set the color for the element W
Re [0.149, 0.49, 0.671, 1.0] Set the color for the element Re
Os [0.149, 0.4, 0.588, 1.0] Set the color for the element Os
Ir [0.09, 0.329, 0.529, 1.0] Set the color for the element Ir
Pt [0.816, 0.816, 0.878, 1.0] Set the color for the element Pt
Au [1.0, 0.82, 0.137, 1.0] Set the color for the element Au
Hg [0.722, 0.722, 0.816, 1.0] Set the color for the element Hg

Color Atomic Number

Choose the color for an individual atomic_number. Useful for joining with fields and selecting individual elements for coloring

Outputs

Description Socket
The generated color based on the node inputs Color

Inputs

Socket Default Description
atomic_number 6 The atomic_number of to use the selected color for
Color [0.8, 0.8, 0.8, 1.0] The color to use for the specified atomic_number

Color Res Name

Choose colors for the individual amino acid and nucleic acid residues

Outputs

Description Socket
Color

Inputs

Socket Default Description
ALA [0.0, 0.0, 0.0, 1.0] Set the color for the residue ALA
ARG [0.095, 0.095, 0.095, 1.0] Set the color for the residue ARG
ASN [0.114, 0.22, 0.185, 1.0] Set the color for the residue ASN
ASP [0.141, 0.337, 0.429, 1.0] Set the color for the residue ASP
CYS [0.281, 0.151, 0.106, 1.0] Set the color for the residue CYS
GLU [0.202, 0.202, 0.202, 1.0] Set the color for the residue GLU
GLN [0.128, 0.205, 0.8, 1.0] Set the color for the residue GLN
GLY [0.8, 0.069, 0.068, 1.0] Set the color for the residue GLY
HIS [0.184, 0.761, 0.341, 1.0] Set the color for the residue HIS
ILE [0.091, 0.627, 0.129, 1.0] Set the color for the residue ILE
LEU [0.037, 0.17, 0.411, 1.0] Set the color for the residue LEU
LYS [0.052, 0.052, 0.052, 1.0] Set the color for the residue LYS
MET [0.528, 0.452, 0.498, 1.0] Set the color for the residue MET
PHE [0.359, 0.305, 0.094, 1.0] Set the color for the residue PHE
PRO [0.8, 0.172, 0.525, 1.0] Set the color for the residue PRO
SER [0.8, 0.722, 0.052, 1.0] Set the color for the residue SER
THR [0.106, 1.0, 0.116, 1.0] Set the color for the residue THR
TRP [0.528, 0.137, 0.411, 1.0] Set the color for the residue TRP
TYR [0.086, 0.365, 0.638, 1.0] Set the color for the residue TYR
VAL [0.069, 0.152, 0.56, 1.0] Set the color for the residue VAL
A [0.274, 0.548, 0.8, 1.0] Set the color for the residue A
C [0.295, 0.8, 0.188, 1.0] Set the color for the residue C
G [0.85, 0.251, 0.178, 1.0] Set the color for the residue G
T [0.8, 0.27, 0.527, 1.0] Set the color for the residue T
rA [0.274, 0.548, 0.8, 1.0] Set the color for the residue rA
rC [0.295, 0.8, 0.188, 1.0] Set the color for the residue rC
rG [0.85, 0.251, 0.178, 1.0] Set the color for the residue rG
rU [0.8, 0.27, 0.527, 1.0] Set the color for the residue rU

Color Common

For convenience, choose colors for the common 6 elements found protein structures

Outputs

Description Socket
The output colors for the common elements Color

Inputs

Socket Default Description
Hydrogen [1.0, 1.0, 1.0, 1.0] Color to set for the element Hydrogen
Carbon [0.202, 0.202, 0.202, 1.0] Color to set for the element Carbon
Nitrogen [0.16, 0.233, 0.8, 1.0] Color to set for the element Nitrogen
Oxygen [0.8, 0.161, 0.16, 1.0] Color to set for the element Oxygen
Phosphorous [0.8, 0.172, 0.525, 1.0] Color to set for the element Phosphorous
Sulfur [0.8, 0.722, 0.052, 1.0] Color to set for the element Sulfur

Color Goodsell

Darken the color of non-carbon atoms, a similar strategy to the style developed by David Goodsell

Outputs

Description Socket
The generated color based on the node inputs Color

Inputs

Socket Default Description
Invert False Whether to invert the darkening of the colors
Factor 0.5 Amount to apply the ‘Goodsell Style’ coloring to
Color [0.5, 0.5, 0.5, 1.0] Color to apply ‘Goodsell’ style colors to

Color Rainbow

Output a rainbow color spectrum along the structure. The rainbow can be generated along each chain in the structure, or along the entire structure. You can offset the strat of the rainbow and chain the color & satuation of the generated colors

Outputs

Description Socket
The generated color Color

Inputs

Socket Default Description
Factor Chain
Color Space HSV
Offset 0.0 Offset the starting hue of the rainbow colors. HSV is 0-1 for the entire rainbow, OKLab is -Pi to Pi for the rainbow.
HSL Saturation 0.8 The Saturation value of the rainbow colors
HSL Value 0.8 The Value value of the resulting rainbow colors
OKLab Luminance 0.94
OKLab Chroma 0.2

Color Attribute Map

Map a value to interpolate between two colors, optionally using an intermediate color. User can specify the Attribute Name that is used for the inerpolation, specifying the start and end values of the interpolation

Outputs

Description Socket
The mapped color value based on the attribute. Color

Inputs

Socket Default Description
Color Space Linear
Name b_factor Name of the attribute to map colors to
Min 0.0 Value for the attribute to be the minimum color
Max 150.0 Value for the attribute to be the maxium color
Intermediate True Wheter to interpolate through the ‘Mid’ color.
A [0.077, 0.479, 0.5, 1.0] Color mapped to the minimum value of the attribute
Intermediate [0.5, 0.5, 0.5, 1.0] Color mapped to the middle value of the attribute
B [0.5, 0.159, 0.058, 1.0] Color mapped to the maximum value of the attribute

Color Attribute Random

Generate a random color, based on the given attribute. Control the lightness and saturation of the color with the inputs.

Outputs

Description Socket
The randomly generated color based on the input attribute Color

Inputs

Socket Default Description
Name chain_id Attribute to base the random color generation on
Colorspace HSL
Color Seed 0 Seed value for the random generation of the colors
OKLab Luminance 0.9
OKLab Chroma 0.2
HSL Saturation 0.6 Saturlation level for the random color
HSL Lightness 0.6 Lightness value for the generated random color

Color pLDDT

Uses the b_factor attribute to assign the typical AlphaFold pLDDT color palette. Node is automatically used when fetching directly from the AlphaFold database

Outputs

Description Socket
Assigned color based on the pLDTT score Color

Inputs

Socket Default Description
<50 [1.0, 0.205, 0.06, 1.0] Color for pLDTT < 50
<70 [1.0, 0.708, 0.007, 1.0] Color for 50 < pLDTT < 70
<90 [0.13, 0.597, 0.896, 1.0] Color for 70 < pLDTT < 90
>90 [0.0, 0.086, 0.672, 1.0] Color for 90 < pLDTT

Color Backbone

Select colors for atoms that are part of the backbone or the side chain of a peptide or nucleic acid polymer. Atoms that are neither maintain their current Color attribute

Outputs

Description Socket
Color

Inputs

Socket Default Description
Backbone [0.469, 0.24, 0.6, 1.0]
Side Chain [0.526, 0.6, 0.24, 1.0]

Color Sec Struct

Choose a color for the different secondary structures, based on the sec_struct attribute.

Outputs

Description Socket
The colors based on secondary structure Color

Inputs

Socket Default Description
Alpha Helix [0.162, 0.624, 0.195, 1.0] Color to set for alpha helices
Beta Sheet [1.0, 0.15, 0.15, 1.0] Color to set for beta-sheets
Loop [0.171, 0.366, 0.799, 1.0] Color to set for loops in the structure

Color Mix Intermediate

Mix between two colors, potentially via an intermediate color. Use either linear or OKLab color spaces

Outputs

Description Socket
Output

Inputs

Socket Default Description
Factor 0.5
Menu Linear
Intermediate False
A [0.077, 0.479, 0.5, 1.0]
Intermediate [0.5, 0.5, 0.5, 1.0]
B [0.5, 0.159, 0.058, 1.0]

Color OKLab Mix

Mix two colors together using the OKLab color space. The first color is the base color, and the second color is the color to mix in. The mix is done in the OKLab color space, and then converted back to linear RGB color space.

Outputs

Description Socket
Result

Inputs

Socket Default Description
Factor 0.5
A [0.051, 0.368, 0.701, 1.0]
B [0.696, 0.043, 0.039, 1.0]

Color OKLab Offset

Offset a color’s luminance or hue in the OKLab color space. The offset is applied to the luminance or hue of the color.

Outputs

Description Socket
Color

Inputs

Socket Default Description
Color [0.08, 1.0, 0.256, 1.0]
Luminance 0.0
Hue 0.0

Color to OKLab

Convert linear RGB color to OKLab color space. This is useful for converting a color to a color that is perceptually uniform.

Outputs

Description Socket
OKLab

Inputs

Socket Default Description
Color [0.0, 0.0, 0.0, 1.0]

OKLab to Color

Convert OKLab color to linear RGB color.

Outputs

Description Socket
Color

Inputs

Socket Default Description
OKLab [0.0, 0.0, 0.0]

OKLab to LCh

Convert OKLab color to LCh color space. This is useful for converting a color to a color that is perceptually uniform.

Outputs

Description Socket
L
C
h

Inputs

Socket Default Description
OKLab [0.0, 0.0, 0.0]

LCh to OKLab

Convert LCh color to OKLab color space. This is useful for converting a color to a color that is perceptually uniform.

Outputs

Description Socket
OKLab

Inputs

Socket Default Description
L 0.0
C 0.0
h 0.0

OKLab Offset LCh

Offset the lightness and chroma of an OKLab color. It is first converted to LCh color space, then the lightness and chroma are offset, then converted back to OKLab color space.

Outputs

Description Socket
OKLab

Inputs

Socket Default Description
OKLab [0.64, 0.0, 0.0]
L 0.0
h 0.0