A region's color [r, g, b, a] (0 for an unknown region).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ShadowCones), | intent(in) | :: | self | |||
| integer, | intent(in) | :: | region |
SHADOW_UMBRA, SHADOW_PENUMBRA or SHADOW_ANTUMBRA |
function region_color(self, region) result(c) class(ShadowCones), intent(in) :: self integer, intent(in) :: region !! SHADOW_UMBRA, SHADOW_PENUMBRA or SHADOW_ANTUMBRA real(wp) :: c(4) integer :: k c = 0.0_wp k = region_index(region) if (k > 0) c = self%region(k)%color end function region_color