Color (rgba) and width (window units) of the whole chain.
| 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) | :: | width |
(window units) |
subroutine set_style(self, color, width) class(LineChain), intent(inout) :: self real(wp), intent(in) :: color(4) !! [r, g, b, a] (0 to 1) real(wp), intent(in) :: width !! (window units) integer :: j self%color = real(color, c_float) self%width = real(width, c_float) do j = 1, self%n_chunks call apply_style(self, self%chunks(j)%line) end do end subroutine set_style