4.1.2 • Published 6 years ago
int-to-rgb-x v4.1.2
int-to-rgb-x
Convert an integer to a RGB string.
module.exports(i)
⇒ string ⏏
Takes a number between 0 and 16777215 inclusive and converts it into 6 digit RGB notation.
Kind: Exported function
Returns: string - The RGB hexadecimal notation: "#RRGGBB".
Param | Type | Description |
---|---|---|
i | number | Integer to be converted into 6 digit RGB. |
Example
import intToRGB from 'int-to-rgb-x';
console.log(intToRGB(1)); // "#000001"
4.1.2
6 years ago
4.1.1
6 years ago
4.1.0
6 years ago
4.0.17
6 years ago
4.0.16
6 years ago
4.0.15
6 years ago
4.0.14
6 years ago
4.0.13
6 years ago
4.0.12
6 years ago
4.0.11
6 years ago
4.0.10
6 years ago
4.0.9
6 years ago
4.0.8
6 years ago
4.0.7
6 years ago
4.0.6
6 years ago
4.0.5
6 years ago
4.0.4
6 years ago
4.0.3
6 years ago
4.0.2
6 years ago
4.0.1
6 years ago
4.0.0
6 years ago
3.0.0
8 years ago
2.1.0
8 years ago
2.0.1
8 years ago
1.1.0
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago