Skip to content

Colors โ€‹

Eighteen ready-made colour gradients, for the contour components.

๐Ÿ”ง Grasshopper component โ€‹

ColorsAlpaca4d โ–ธ 09_Visualisation
Colors component
Inputs
IndexGradientIndexInteger0Which gradient. See the table.
IndexGradientIndexGradient
0Turbo (default)9Seismic
1Viridis10Batlow
2Plasma11Tokyo
3Inferno12Buda
4Magma13Imola
5Cool14Vik
6Hot15Roma
7Coolwarm16Bam
8Spectral17Berlin
Outputs
ColorsColourlistThe gradient, for the Colors input of any contour component or of Legend.

๐Ÿ“ˆ When to use it โ€‹

Use it when you are feeding a gradient to Model View or Legend, and the default Turbo is not the right map for the data.

Do not use it when the default is fine โ€” leave Colors empty on those components and they use Turbo on their own.

๐Ÿ’ก Choosing one โ€‹

The quantityUseWhy
Has a meaningful zero โ€” a moment, a stress that can be tension or compressionCoolwarm (7), Vik (14), Berlin (17), Seismic (9)Diverging: two hues meeting at a neutral midpoint, so the sign is visible.
Runs from nothing to a maximum โ€” displacement magnitude, Von MisesViridis (1), Batlow (10), Plasma (2), Inferno (3)Sequential and perceptually uniform: equal steps in value look like equal steps in colour.
Needs maximum contrast for a presentationTurbo (0)Bright, but not perceptually uniform โ€” it invents banding that is not in the data.

Batlow, Tokyo, Buda, Imola, Vik, Roma, Bam and Berlin are from the Scientific Colour Maps family: perceptually uniform and readable by colour-blind viewers. They are the safer choice for anything that will be printed or published.

Note

Whichever gradient you pick, give the same list to Legend, and fix Range on the contour if you are comparing more than one view.