# GripGradient class

Namespace: [Grasshopper2.Types.Colour](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.types.colour.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
[IoId("00000000-078F-4D74-9913-1149129256C2")]
public sealed class GripGradient : Gradient, IEquatable<GripGradient>
```

A one dimensional colour gradient based on positional grips.

## Constructors

- [GripGradient](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/ctor.md): (3 overloads) Deserialization constructor.

## Properties

- [GripCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/gripcount.md): Gets the number of grips in this gradient.
- [Interaction](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/interaction.md): Gets a user interaction object based on this gradient. Not all gradient types will have interaction objects.
- [IntrinsicDomain](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/intrinsicdomain.md): Gets the interval containing the defined interior of this gradient. Note that this refers to the mathematics underlying the gradient, the [Gradient.ApparentDomain](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradient/apparentdomain.md) encodes the publicly facing domain of this gradient.
- [Progression](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/progression.md): Interpolation to use for this gradient.
- [Space](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/space.md): Gets the colour space this gradient is defined in.

## Indexers

- [this[]](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/item.md): (2 overloads) Gets the grip with the specified id.

## Methods

- [ColourAtInternal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/colouratinternal.md): Sample the gradient at the given gradient parameter.
- [Draw](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/draw.md): Draw this gradient as a horizontal progression. This method is optimized for speed and may not necessarily yield the exact result.
- [Equals](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/equals.md): (2 overloads)
- [EqualsMapped](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/equalsmapped.md)
- [GetHashCode](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/gethashcode.md)
- [InsertGrip](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/insertgrip.md): (2 overloads) Insert a grip at a specific parameter.
- [Interpolators](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/interpolators.md): Gets the interpolation functions (3 colour channels and 1 alpha channel).
- [NormaliseMapping](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/normalisemapping.md): Adjust the grips so that the [GripGradient.IntrinsicDomain](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/intrinsicdomain.md) matches the [Gradient.ApparentDomain](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradient/apparentdomain.md) and the [Gradient.Mapping](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradient/mapping.md) becomes identity.
- [Remap](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/remap.md): Create a new gradient which is similar to this gradient but remapped to a different interval.
- [RemoveGrip](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/removegrip.md): Remove the grip at the given index.
- [ReplaceGrip](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/replacegrip.md): Create a new gradient by replacing a grip.
- [Store](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/store.md): This method is called whenever the instance is required to serialize itself.
- [SurroundingGrips](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/surroundinggrips.md): Gets the grips on either side of a parameter.
- [ToGripArray](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/togriparray.md): Create a duplicate of the internal grip array.
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/tostring.md): Returns a string that represents the current object.
- [WithContinuousGrips](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/withcontinuousgrips.md): Convert all discontinuous grips into continuous grips.
- [WithInterpolation](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/withinterpolation.md): Change the interpolation on this gradient.
- [WithSpace](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient/withspace.md): Change the colour space on this gradient.

## Inherited Members

- From [Gradient](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradient.md): [ApparentDomain](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradient/apparentdomain.md), [Mapping](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradient/mapping.md), [ColourAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradient/colourat.md), [CreateTextureCache](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradient/createtexturecache.md), [Draw](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradient/draw.md), [IsConstant](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradient/isconstant.md), [Remap](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradient/remap.md), [RemapAutomatic](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradient/remapautomatic.md), [ToBitmap](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradient/tobitmap.md), [WithAutomaticLimits](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradient/withautomaticlimits.md)
