hex_hash: Create a HEX color based on the characters of the input...

View source: R/colors.R

hex_hashR Documentation

Create a HEX color based on the characters of the input string

Description

Create a HEX color based on the characters of the input string

Usage

hex_hash(str, first = TRUE)

Arguments

str

Input string

first

if TRUE, use the first three characters to generate the color. If FALSE, use a random selection of three characters from the string to generate the color

Value

a string representing the color, e.g. "#FF00EE"

Examples

library(gfutilities)
hex_hash("Yelloweye Rockfish", FALSE)

pbs-assess/gfutilities documentation built on Sept. 18, 2023, 7:57 a.m.