Grasshopper API
GH_GraphicsUtilFadeColour Method |
Fade a colour to transparency by linearly blending a parameter between extremes.
Namespace: Grasshopper.GUI
Assembly: Grasshopper (in Grasshopper.dll)

public static Color FadeColour( double t0, double t1, double t, Color col )
Public Shared Function FadeColour ( t0 As Double, t1 As Double, t As Double, col As Color ) As Color
Parameters
- t0
- Type: SystemDouble
First extreme. (represents transparency) - t1
- Type: SystemDouble
Second extreme. (represent unaltered colour) - t
- Type: SystemDouble
Blending factor between t0 and t1. - col
- Type: System.DrawingColor
Colour to fade.
Return Value
Type: ColorThe colour adjusted for blending.
