Highlight the curve (see the module documentation): mode a sum of
HIGHLIGHT_PULSE and HIGHLIGHT_ARROWS (HIGHLIGHT_NONE: not highlighted),
in color ([r, g, b] or [r, g, b, a]; default white). The other
settings are kept when not given.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(CurveArtist), | intent(inout) | :: | self | |||
| integer, | intent(in) | :: | mode |
HIGHLIGHT_* (added) |
||
| real(kind=wp), | intent(in), | optional | :: | color(:) |
[r, g, b] or [r, g, b, a] (0 to 1) |
|
| real(kind=wp), | intent(in), | optional | :: | arrow_spacing |
between arrows (window units; default 40) |
|
| real(kind=wp), | intent(in), | optional | :: | arrow_speed |
(window units per second; default 50) |
|
| real(kind=wp), | intent(in), | optional | :: | band_width |
of the arrows' band (window units; default 12) |
|
| real(kind=wp), | intent(in), | optional | :: | pulse_period |
(s; default 1.5) |
subroutine curve_set_highlight(self, mode, color, arrow_spacing, arrow_speed, band_width, pulse_period) class(CurveArtist), intent(inout) :: self integer, intent(in) :: mode !! HIGHLIGHT_* (added) real(wp), intent(in), optional :: color(:) !! [r, g, b] or [r, g, b, a] (0 to 1) real(wp), intent(in), optional :: arrow_spacing !! between arrows (window units; default 40) real(wp), intent(in), optional :: arrow_speed !! (window units per second; default 50) real(wp), intent(in), optional :: band_width !! of the arrows' band (window units; default 12) real(wp), intent(in), optional :: pulse_period !! (s; default 1.5) call update_highlight(self%highlight_, mode, color, arrow_spacing, arrow_speed, band_width, pulse_period) call curve_style(self) end subroutine curve_set_highlight