You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Geometry provides a generic function (`geometry::hostcolor`) for setting any color based on hostname. The color is calculated as the sum of each character converted to an integer. For example the hostname 'abc' generates a value of 294.
115
+
116
+
By default the colors 1-9 and 17-230 are used as colors depending on what the environment supports. The calculated value is then modded by the size of the color list to choose a value. This value will be consistent given the same hostname.
117
+
118
+
These colors can be overridden by setting variables.
119
+
120
+
```shell
121
+
GEOMETRY_HOST_COLORS=({1..7}) # Only use the colors 1-7
122
+
GEOMETRY_HOST_COLOR=4 # Override the color for a specific host.
123
+
```
124
+

125
+
116
126
## Thanks
117
127
118
128
geometry is maintained by [frm](https://github.com/frm), [desyncr](https://github.com/desyncr) and [jedahan](https://github.com/jedahan).
0 commit comments