col.mean: Give the hex color weighted average of two hex colors

Description Usage Arguments Value

Description

col.mean() takes two hex colors and two sets of weights to give the average color The direct method gives the rgb average, whereas the indirect method gives the hsv average by finding the shortest angle needed to be traversed by the hue parameter

Usage

1
col.mean(col1, col2, w1 = 0.5, w2 = 0.5, direct = TRUE)

Arguments

col1

first hex color

w1

weight to give first hex color (w1 + w2 = 1)

w2

weight to give second hex color (w1 + w2 = 1)

direct

if TRUE, will get the rgb average. If FALSE will give the hsv average

col1

second hex color

Value

new hex color


ash129/penrose documentation built on May 17, 2019, 12:04 p.m.