4.1.2 • Published 5 years ago

int-to-rgb-x v4.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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".

ParamTypeDescription
inumberInteger to be converted into 6 digit RGB.

Example

import intToRGB from 'int-to-rgb-x';

console.log(intToRGB(1)); // "#000001"
4.1.2

5 years ago

4.1.1

5 years ago

4.1.0

5 years ago

4.0.17

5 years ago

4.0.16

5 years ago

4.0.15

5 years ago

4.0.14

5 years ago

4.0.13

5 years ago

4.0.12

5 years ago

4.0.11

5 years ago

4.0.10

5 years ago

4.0.9

5 years ago

4.0.8

5 years ago

4.0.7

5 years ago

4.0.6

5 years ago

4.0.5

5 years ago

4.0.4

5 years ago

4.0.3

5 years ago

4.0.2

5 years ago

4.0.1

5 years ago

4.0.0

5 years ago

3.0.0

7 years ago

2.1.0

7 years ago

2.0.1

7 years ago

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago