---
id: fast-colors.colorrgba64.clamp
title: ColorRGBA64.clamp() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-colors](./fast-colors.md) &gt; [ColorRGBA64](./fast-colors.colorrgba64.md) &gt; [clamp](./fast-colors.colorrgba64.clamp.md)

## ColorRGBA64.clamp() method

Returns a new [ColorRGBA64](./fast-colors.colorrgba64.md) with channel values clamped between 0 and 1.

<b>Signature:</b>

```typescript
clamp(): ColorRGBA64;
```
<b>Returns:</b>

[ColorRGBA64](./fast-colors.colorrgba64.md)
