int_to_hex {jjb}R Documentation

Convert 0-255 to a Hex number

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

int_to_hex(n)

Arguments

n

An int

Value

A string of length 2.

Examples

int_to_hex(22)

[Package jjb version 0.1.1 Index]