int_to_hex: Convert 0-255 to a Hex number

Description Usage Arguments Value Examples

View source: R/colors.R

Description

This is a helper function for rgb_to_hex. This function takes a single R, G, or B numeric value and converts it to hex.

Usage

1

Arguments

n

An int

Value

A string of length 2.

Examples

1

jjb documentation built on Jan. 8, 2020, 5:07 p.m.