The segments' color: [r, g, b] (alpha unchanged) or [r, g, b, a], 0 to 1.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(SegmentArtist), | intent(inout) | :: | self | |||
| real(kind=wp), | intent(in) | :: | color(:) |
[r, g, b] or [r, g, b, a] (0 to 1) |
subroutine segment_set_color(self, color) class(SegmentArtist), 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 self%chain%set_style(self%color_, self%width_) end subroutine segment_set_color