color_to_byte Function

public function color_to_byte(color_val) result(byte_val)

Convert floating-point color value [0,1] to byte [0,255]

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: color_val

Return Value integer(kind=1)