<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@csstools/color-helpers](./color-helpers.md) &gt; [gam\_sRGB](./color-helpers.gam_srgb.md)

## gam\_sRGB() function

Convert an array of linear-light sRGB values in the range 0.0-1.0 to gamma corrected form Extended transfer function: For negative values, linear portion extends on reflection of axis, then uses reflected pow below that

**Signature:**

```typescript
export declare function gam_sRGB(RGB: Color): Color;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

RGB


</td><td>

[Color](./color-helpers.color.md)


</td><td>


</td></tr>
</tbody></table>

**Returns:**

[Color](./color-helpers.color.md)

