Apply the colors, size, shape and attenuation radius (0: off) to the marker nodes.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(MarkerArtist), | intent(inout) | :: | self |
subroutine marker_style(self) type(MarkerArtist), intent(inout) :: self real(wp) :: r r = 0.0_wp if (self%attenuate) r = self%radius call self%start_node%set_marker_style(style_color(self%start_node, self%start_color), self%size_, self%shape_, r) call self%end_node%set_marker_style(style_color(self%end_node, self%end_color), self%size_, self%shape_, r) call self%inter%set_marker_style(style_color(self%inter, self%intermediate_color), self%size_, self%shape_, r) contains !> The style's color: the marker's, or white if each marker has its own (the shader multiplies them). function style_color(chain, own) result(c) type(LineChain), intent(in) :: chain !! the marker's buffers real(wp), intent(in) :: own(4) !! the marker's own color real(wp) :: c(4) c = own if (chain%is_colored()) c = 1.0_wp end function style_color end subroutine marker_style