pack_rgb Function

public pure function pack_rgb(r, g, b) result(packed)

Pack an RGB triple (0..1) into a single 24-bit integer for the per-cell color buffer.

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: r
real(kind=wp), intent(in) :: g
real(kind=wp), intent(in) :: b

Return Value integer