# ColourShader class

Namespace: [Grasshopper2.Imaging.Raycasting](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.imaging.raycasting.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public abstract class ColourShader
```

Base class for all colour shaders.

**Derived types:** [BiColourMap](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.bicolourmap.md), [BiShaderMap](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.bishadermap.md), [BlurColourShader](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.blurcolourshader.md), [Checkerboard](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.checkerboard.md), [ColourShaderModifier](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.colourshadermodifier.md), [ConstantColourShader](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.constantcolourshader.md), [GradientMap](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.gradientmap.md), [GridShader](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.gridshader.md), [InterpolateMultipleShader](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.interpolatemultipleshader.md), [InterpolateTriangularShader](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.interpolatetriangularshader.md), [NoisePixelShader](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.noisepixelshader.md), [PatternHexagonal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.patternhexagonal.md), [PatternRectangular](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.patternrectangular.md), [PixelateColour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.pixelatecolour.md), [Polkadots](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.polkadots.md), [Stripes](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.stripes.md), [TextureShader](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.textureshader.md), [Transparency](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.shaders.transparency.md)

## Methods

- [ColourAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.colourshader/colourat.md): Evaluate this shader at a specific ray location.
- [Dilate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.colourshader/dilate.md): Apply a dilation (or scaling) transformation to this shader.
- [Fade](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.colourshader/fade.md): (2 overloads) Add a transparency layer to this shader.
- [ResolveColour](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.colourshader/resolvecolour.md): Utility function for resolving a colour with the background.
- [Rotate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.colourshader/rotate.md): Apply a rotation transformation to this shader.
- [Transform](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.colourshader/transform.md): Apply a custom transformation to this shader.
- [Translate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.colourshader/translate.md): Apply a translation transformation to this shader.
- [TryParse](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.colourshader/tryparse.md): (static) Try and parse a string description.

## Convertors

- [operator implicit](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.colourshader/op-implicit.md): (2 overloads, static) Create a solid fill shader.
