---
id: fast-colors.colorscale
title: ColorScale class
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-colors](./fast-colors.md) &gt; [ColorScale](./fast-colors.colorscale.md)

## ColorScale class

A color scale created from linear stops

<b>Signature:</b>

```typescript
export declare class ColorScale 
```

## Constructors

|  Constructor | Modifiers | Description |
|  --- | --- | --- |
|  [(constructor)(stops)](./fast-colors.colorscale._constructor_.md) |  | Constructs a new instance of the <code>ColorScale</code> class |

## Methods

|  Method | Modifiers | Description |
|  --- | --- | --- |
|  [clone()](./fast-colors.colorscale.clone.md) |  |  |
|  [createBalancedColorScale(colors)](./fast-colors.colorscale.createbalancedcolorscale.md) | <code>static</code> |  |
|  [findNextColor(position, contrast, searchDown, interpolationMode, contrastErrorMargin, maxSearchIterations)](./fast-colors.colorscale.findnextcolor.md) |  |  |
|  [getColor(position, interpolationMode)](./fast-colors.colorscale.getcolor.md) |  |  |
|  [trim(lowerBound, upperBound, interpolationMode)](./fast-colors.colorscale.trim.md) |  |  |
