# GradientDiscontinuity struct

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
public struct GradientDiscontinuity : IComparable<GradientDiscontinuity>
```

Represents a discontinuity in a gradient progression.

## Constructors

- [GradientDiscontinuity](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientdiscontinuity/ctor.md): Create a new discontinuity.

## Properties

- [Order](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientdiscontinuity/order.md): Gets the order of the discontinuity.
- [Parameter](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientdiscontinuity/parameter.md): Gets the gradient parameter.

## Methods

- [CompareTo](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientdiscontinuity/compareto.md): Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
