# Grasshopper2.Types.Colour namespace

Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

## Classes

- [Colour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colour.md): Provides a way to store colours using a variety of spaces using high-precision mathematics. This is the class Grasshopper uses internally to store colours. Rhino, Eto, and .NET have their own colour types (usually [ColorRGBA](https://mcneel-apidocs-rhinocommon-7f6eb10c6967.herokuapp.com/api/rhinocommon/type/rhino.display.colorrgba/), `Color`, and [Color](https://learn.microsoft.com/dotnet/api/system.drawing.color), but there are many more), so you may need to convert to and from those types to [Colour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colour.md) on a per-case basis.
- [ColourConversions](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions.md): Provides static methods for converting one colour space into another. These methods have been implemented based on http://www.easyrgb.com/index.php?X=MATH and do not depend on code in Eto, Rhino, or any other assembly.
- [ColourMixture](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourmixture.md): Utility class for creating linear combinations of colours.
- [FunctionGradient](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.functiongradient.md): A one dimensional colour gradient based on a colour space and channel functions.
- [Gradient](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradient.md): Base class for all Grasshopper gradients. Consider using [GripGradient](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient.md) as a ready-made implementation.
- [Gradient.GradientTexture](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradient.gradienttexture.md)
- [GradientChangedEventArgs](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientchangedeventargs.md): Arguments used in the GradientChanged event.
- [GradientGrip](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientgrip.md): Represents a grip in a colour gradient.
- [GripGradient](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient.md): A one dimensional colour gradient based on positional grips.
- [GripGradient.GradientFunction](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient.gradientfunction.md): An interpolation function used for gradient channels.
- [GripGradientInteraction](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradientinteraction.md): Interaction object for [GripGradient](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gripgradient.md).
- [NamedColour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedcolour.md): A (mostly) immutable named colour.
- [NamedColourCollision](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedcolourcollision.md): Describes the collision of two or more named colours. Named colours collide when they have the same name.
- [NamedPalette](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette.md): Represents a collection of uniquely named colours. Think of this as a colour dictionary.
- [RadialPalette](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.radialpalette.md): Represents a radial palette with a central colour.
- [StandardGradients](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.standardgradients.md): Provides a collection of default gradients, as well as access to custom user gradients.

## Enums

- [ColourAdjective](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colouradjective.md): Enumerates the colour adjectives Grasshopper understands.
- [ColourImportance](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourimportance.md): Enumerates the various linguistic importances that colours can have.
- [ColourParseSource](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourparsesource.md): Enumerates the possible sources for a successful colour parsing.
- [GradientGripSide](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientgripside.md): Enumerates the sides of gradient grip.
- [LinguisticResolution](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.linguisticresolution.md): Enumerates the possible ways in which colours can be resolved.
- [PaletteMergeBehaviour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.palettemergebehaviour.md): Enumerates some default merge options for named palettes.
- [Progression](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.progression.md): Enumerates the possible colour interpolations for a gradient.
- [Space](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.space.md): Enumerates the defined colour spaces.
- [Space3](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.space3.md): A subset of the [Space](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.space.md) enumeration listing only mathemtical, 3-channel colours.

## Structs

- [ColourConversions.PlanckianLocus](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions.planckianlocus.md): Temperature measure point for CIE Chromaticity diagrams.
- [ColourConversions.SpectralLocus](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.colourconversions.spectrallocus.md): Wavelength measure point for CIE Chromaticity diagrams.
- [GradientDiscontinuity](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientdiscontinuity.md): Represents a discontinuity in a gradient progression.
- [GradientMapping](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.gradientmapping.md): A numeric mapping into gradient domain parameters.

## Delegates

- [NamedPalette.MergeDelegate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.colour.namedpalette.mergedelegate.md): Merge a collection of colours.
