resolve_sequence_to_rgb Subroutine

public subroutine resolve_sequence_to_rgb(color_strings, rgb_array, context, success)

Parse an array of color strings into a 3xN RGB matrix.

Returns success = .false. without allocating the output when any entry fails to parse; callers should fall back to defaults in that case rather than rendering with partially-resolved colors.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: color_strings(:)
real(kind=wp), intent(out), allocatable :: rgb_array(:,:)
character(len=*), intent(in) :: context
logical, intent(out) :: success