# GradientGrip 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-F09C-4616-9F59-0CDB195B33C8")]
public sealed class GradientGrip : IStorable, IComparable<GradientGrip>, IEquatable<GradientGrip>
```

Represents a grip in a colour gradient.

## Constructors

- [GradientGrip](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientgrip/ctor.md): (5 overloads) Create a new continuous grip.

## Properties

- [Average](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientgrip/average.md): Gets the average grip colour.
- [Id](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientgrip/id.md): Gets the ID of this grip.
- [In](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientgrip/in.md): Gets the colour going into the left side of this grip.
- [IsContinuous](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientgrip/iscontinuous.md): Gets whether this grip is continuous, i.e. if the left colour and right colour are identical.
- [Out](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientgrip/out.md): Gets the colour coming out of the right side of this grip.
- [Parameter](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientgrip/parameter.md): Gets the parameter of this grip.

## Methods

- [Store](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientgrip/store.md): This method is called whenever the instance is required to serialize itself.
- [IComparable<GradientGrip>.CompareTo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientgrip/system-icomparable-grasshopper2-types-colour-gradientgrip-compareto.md)
- [IEquatable<GradientGrip>.Equals](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientgrip/system-iequatable-grasshopper2-types-colour-gradientgrip-equals.md)
- [WithColour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientgrip/withcolour.md): (2 overloads) Create a new grip based on the current grip but with a different colour.
- [WithNewId](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientgrip/withnewid.md): Create a new identical grip with a different Id.
- [WithParameter](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientgrip/withparameter.md): Create a new grip based on the current grip but with a new parameter.
