Color of point i in a colored chain: the trajectory's, or the artist's (opaque: the style has the alpha) if it has none yet.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(RibbonArtist), | intent(in) | :: | self | |||
| integer, | intent(in) | :: | i |
the trajectory point |
function ribbon_point_rgba(self, i) result(rgba) type(RibbonArtist), intent(in) :: self integer, intent(in) :: i !! the trajectory point real(wp) :: rgba(4) if (i <= self%traj%num_colors()) then rgba = self%traj%color(i) else rgba = [self%color_(1:3), 1.0_wp] end if end function ribbon_point_rgba