rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
68 lines (32 loc) • 856 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [rc-js-util](./rc-js-util.md) > [Vec4](./rc-js-util.vec4.md) > [setRGBAColor](./rc-js-util.vec4.setrgbacolor.md)
## Vec4.setRGBAColor() method
**Signature:**
```typescript
setRGBAColor(_packedRGBA: number, _normalize?: boolean): Vec4<TArray>;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
\_packedRGBA
</td><td>
number
</td><td>
The number to be unpacked.
</td></tr>
<tr><td>
\_normalize
</td><td>
boolean
</td><td>
_(Optional)_ If true, normalize components between 0 - 1.
</td></tr>
</tbody></table>
**Returns:**
[Vec4](./rc-js-util.vec4.md)<!-- --><TArray>