dm_rgb_to_hex Subroutine

public pure elemental subroutine dm_rgb_to_hex(r, g, b, hex)

Converts RGB values to hex string, for instance, (255, 255, 255) to #FFFFFF.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: r

Red.

integer, intent(in) :: g

Green.

integer, intent(in) :: b

Blue.

character(len=7), intent(out) :: hex

Hex string.


Called by

proc~~dm_rgb_to_hex~~CalledByGraph proc~dm_rgb_to_hex dm_rgb_to_hex proc~dm_roff_defcolor dm_roff_defcolor proc~dm_roff_defcolor->proc~dm_rgb_to_hex