blendColours: Blend two HEX colours

blendColoursR Documentation

Blend two HEX colours

Description

Blend two HEX colours

Usage

blendColours(colour1, colour2, colour1Percentage = 0.5)

Arguments

colour1

Character: HEX colour

colour2

Character: HEX colour

colour1Percentage

Character: percentage of colour 1 mixed in blended colour

Value

Character representing an HEX colour

Source

Code modified from https://stackoverflow.com/questions/5560248

Examples

psichomics:::blendColours("#3f83a3", "#f48000")

nuno-agostinho/psichomics documentation built on Feb. 11, 2024, 11:16 p.m.