Change the settings given (see set_highlight).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(HighlightStyle), | intent(inout) | :: | h |
the highlight changed |
||
| integer, | intent(in) | :: | mode |
HIGHLIGHT_* (added) |
||
| real(kind=wp), | intent(in), | optional | :: | color(:) |
as set_highlight |
|
| real(kind=wp), | intent(in), | optional | :: | arrow_spacing |
as set_highlight |
|
| real(kind=wp), | intent(in), | optional | :: | arrow_speed |
as set_highlight |
|
| real(kind=wp), | intent(in), | optional | :: | band_width |
as set_highlight |
|
| real(kind=wp), | intent(in), | optional | :: | pulse_period |
as set_highlight |
subroutine update_highlight(h, mode, color, arrow_spacing, arrow_speed, band_width, pulse_period) type(HighlightStyle), intent(inout) :: h !! the highlight changed integer, intent(in) :: mode !! HIGHLIGHT_* (added) real(wp), intent(in), optional :: color(:), arrow_spacing, arrow_speed, band_width, pulse_period !! as set_highlight h%mode = iand(mode, HIGHLIGHT_PULSE + HIGHLIGHT_ARROWS) if (present(color)) call set_rgba(h%color, color) if (present(arrow_spacing)) h%arrow_spacing = max(arrow_spacing, 1.0_wp) if (present(arrow_speed)) h%arrow_speed = arrow_speed if (present(band_width)) h%band_width = max(band_width, 0.0_wp) if (present(pulse_period)) h%pulse_period = max(pulse_period, 0.05_wp) end subroutine update_highlight