Color of point i: the trajectory's, or own if it has none yet.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(Trajectory), | intent(in) | :: | traj |
the trajectory |
||
| integer, | intent(in) | :: | i |
the point |
||
| real(kind=wp), | intent(in) | :: | own(4) |
the color if it has none |
pure function point_rgba_or(traj, i, own) result(rgba) type(Trajectory), intent(in) :: traj !! the trajectory integer, intent(in) :: i !! the point real(wp), intent(in) :: own(4) !! the color if it has none real(wp) :: rgba(4) rgba = own if (i >= 1 .and. i <= traj%num_colors()) rgba = traj%color(i) end function point_rgba_or