The color of point i of a colored chain, as stored (rgba; white if not colored).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(LineChain), | intent(in) | :: | self | |||
| integer, | intent(in) | :: | i |
chain index |
function point_color(self, i) result(rgba) class(LineChain), intent(in) :: self integer, intent(in) :: i !! chain index real(wp) :: rgba(4) real(c_float), dimension(:,:), pointer :: c integer :: j, lo, hi rgba = 1.0_wp do j = 1, self%n_chunks call self%color_slice(j, i, i, lo, hi, c) if (associated(c)) then rgba = real(c(:, 1), wp) return end if end do end function point_color