Package 'colorinfo'

Title: Color Code and Specification Information
Description: What the package does (one paragraph).
Authors: Shinya Uryu [aut, cre]
Maintainer: Shinya Uryu <[email protected]>
License: MIT + file LICENSE
Version: 0.0.0.9000
Built: 2024-08-31 03:50:00 UTC
Source: https://github.com/uribo/colorinfo

Help Index


Display Color Code Blocks

Description

Outputs a color close to the given color code on the command line.

Usage

col_block(color, bg = NULL)

Arguments

color

color code

bg

background color

Examples

## Not run: 
col_block("#00af00")
col_block("#00af00", bg = "white")
col_block(rgb(221, 235, 30, maxColorValue = 255), bg = "black")

## End(Not run)

Color to XY Conversion

Description

Color to XY Conversion

Usage

col2xy(color)

Arguments

color

color code

Examples

col2xy("#FF003F")
col2xy(rgb(221, 235, 30, maxColorValue = 255))