The color of the frame's decorations: [r, g, b] (alpha unchanged) or [r, g, b, a].
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ReferenceFrame), | intent(inout) | :: | self | |||
| real(kind=wp), | intent(in) | :: | color(:) |
[r, g, b] (alpha unchanged) or [r, g, b, a] (0 to 1) |
subroutine set_color(self, color) class(ReferenceFrame), intent(inout) :: self real(wp), intent(in) :: color(:) !! [r, g, b] (alpha unchanged) or [r, g, b, a] (0 to 1) integer :: n n = min(4, size(color)) self%color_(1:n) = color(1:n) if (.not. self%realized) return if (c_associated(self%name_text)) call check_status(vkf_label_set_color(self%name_text, real(self%color_, c_float))) call remake_axes(self) end subroutine set_color