Deprecate utility tag
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: RGBToHex
|
||||
tags: utility,intermediate
|
||||
tags: string,math,intermediate
|
||||
---
|
||||
|
||||
Converts the values of RGB components to a color code.
|
||||
@ -13,4 +13,4 @@ const RGBToHex = (r, g, b) => ((r << 16) + (g << 8) + b).toString(16).padStart(6
|
||||
|
||||
```js
|
||||
RGBToHex(255, 165, 1); // 'ffa501'
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user