colourDelta: Check Colour Delta

View source: R/utils.R

colourDeltaR Documentation

Check Colour Delta

Description

Check the similarity of two colours by hex code. 0 = identical, 1 = opposite (black & white)

Usage

colourDelta(hex1, hex2)

Arguments

hex1

colour one, as hex code #XXXXXX

hex2

colour two, as hex code #XXXXXX

Value

a value from 0 (identical) to 1 (completely opposite, black & white)

Examples

# colour similarity between FLA and TBL primary colours
colourDelta("#041E42", "#002868")

pbulsink/HockeyModel documentation built on Dec. 16, 2024, 8:03 a.m.