default_overlay.Rd
Default color overlay for adding new layers
default_overlay(r0, g0, b0, r, g, b, alpha = 1)
red channel for the layers that are already in the plot.
green channel for the layers that are already in the plot.
blue channel for the layers that are already in the plot.
red channel for the new layer
green channel for the new layer
blue channel for the new layer
alpha channel for the new layer
The default overlay is (take red channel for example) r*alpha + r0*(1-alpha)
.
A list which contains overlayed RGB colors (values between 0 and 1).
Color overlay function is always used in hc_layer,HilbertCurve-method
or hc_layer,GenomicHilbertCurve-method
.
# 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)
#> $r
#> [1] 0.75
#>
#> $g
#> [1] 0.25
#>
#> $b
#> [1] 0.25
#>