For markers, the color (rgba), size (window units), shape (shaders/marker.frag) and attenuation radius (scene units, 0 for none).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(LineChain), | intent(inout) | :: | self | |||
| real(kind=wp), | intent(in) | :: | color(4) |
[r, g, b, a] (0 to 1) |
||
| real(kind=wp), | intent(in) | :: | size |
(window units) |
||
| integer, | intent(in) | :: | shape |
marker shape (shaders/marker.frag) |
||
| real(kind=wp), | intent(in) | :: | radius |
attenuation radius (scene units; 0: none) |
subroutine set_marker_style(self, color, size, shape, radius) class(LineChain), intent(inout) :: self real(wp), intent(in) :: color(4) !! [r, g, b, a] (0 to 1) real(wp), intent(in) :: size !! (window units) real(wp), intent(in) :: radius !! attenuation radius (scene units; 0: none) integer, intent(in) :: shape !! marker shape (shaders/marker.frag) integer :: j self%color = real(color, c_float) self%width = real(size, c_float) self%shape = shape self%radius = real(radius, c_float) do j = 1, self%n_chunks call apply_style(self, self%chunks(j)%line) end do end subroutine set_marker_style