# Modifier.Contrast class

Namespace: [Grasshopper2.UI.Skinning](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.skinning.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class Modifier.Contrast : Modifier
```

Stretches lightness away from mid-grey, or squeezes it towards mid-grey for negative percentages. Light colours get lighter and dark ones darker, so the order of a set of shades is kept; at -100% every colour has the same lightness. Chroma is left alone, that is what [Modifier.Saturation](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.modifier.saturation.md) is for.

## Constructors

- [Modifier.Contrast](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.modifier.contrast/ctor.md)

## Fields

- [Pivot](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.modifier.contrast/pivot.md): (static) The Oklab lightness that stays put.

## Properties

- [Kind](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.modifier.contrast/kind.md)
- [Percent](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.modifier.contrast/percent.md)

## Methods

- [Apply](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.modifier.contrast/apply.md)
- [ToText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.modifier.contrast/totext.md)

## Inherited Members

- From [Modifier](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.modifier.md): [Dependencies](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.modifier/dependencies.md), [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.modifier/tostring.md), [WithoutReferences](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.skinning.modifier/withoutreferences.md)
