default_overlay: Default color overlay for adding new layers

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/HilbertCurve.R

Description

Default color overlay for adding new layers

Usage

1
default_overlay(r0, g0, b0, r, g, b, alpha = 1)

Arguments

r0

red channel for the layers that are already in the plot.

g0

green channel for the layers that are already in the plot.

b0

blue channel for the layers that are already in the plot.

r

red channel for the new layer

g

green channel for the new layer

b

blue channel for the new layer

alpha

alpha channel for the new layer

Details

The default overlay is (take red channel for example) r*alpha + r0*(1-alpha).

Value

A list which contains overlayed RGB colors (values between 0 and 1).

Author(s)

Zuguang Gu <z.gu@dkfz.de>

See Also

Color overlay function is always used in hc_layer,HilbertCurve-method or hc_layer,GenomicHilbertCurve-method.

Examples

1
2
# red (1, 0, 0) overlay to the grey (0.5, 0.5, 0.5) with 0.5 transparency
default_overlay(1, 0, 0, 0.5, 0.5, 0.5, 0.5)

HilbertCurve documentation built on Nov. 8, 2020, 8:05 p.m.