The surface's color: [r, g, b] (alpha unchanged) or [r, g, b, a]; its alpha is the surface's opacity (also with the trajectory's colors).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(RibbonArtist), | intent(inout) | :: | self | |||
| real(kind=wp), | intent(in) | :: | color(:) |
[r, g, b] or [r, g, b, a] (0 to 1) |
subroutine ribbon_set_color(self, color) class(RibbonArtist), intent(inout) :: self real(wp), intent(in) :: color(:) !! [r, g, b] or [r, g, b, a] (0 to 1) call set_rgba(self%color_, color) call ribbon_style(self) if (self%chain%is_colored()) self%seen_generation = -1 ! (points without colors redrawn) end subroutine ribbon_set_color