Grasshopper API
GH_GraphicsUtilOffsetColour Method (Color, Int32) |
Add a fixed value to all the channels in a colour.
Namespace: Grasshopper.GUI
Assembly: Grasshopper (in Grasshopper.dll)

public static Color OffsetColour( Color col, int shift )
Public Shared Function OffsetColour ( col As Color, shift As Integer ) As Color
Parameters
- col
- Type: System.DrawingColor
The colour to mutate. - shift
- Type: SystemInt32
Offset value (-255 ~ +255).
Return Value
Type: ColorThe offsetted colour.

The alpha channel of the colour is not offset.
