---
id: fast-colors.colorscale.trim
title: ColorScale.trim() method
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) &gt; [trim](./fast-colors.colorscale.trim.md)

## ColorScale.trim() method

<b>Signature:</b>

```typescript
trim(lowerBound: number, upperBound: number, interpolationMode?: ColorInterpolationSpace): ColorScale;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  lowerBound | number |  |
|  upperBound | number |  |
|  interpolationMode | [ColorInterpolationSpace](./fast-colors.colorinterpolationspace.md) |  |

<b>Returns:</b>

[ColorScale](./fast-colors.colorscale.md)
