QuickWin Subroutine: Converts an RGB color value into its red, green, and blue components.
Module: USE DFLIB
Syntax
INTEGERTORGB separates the four-byte RGB color value into the three components as follows:
Compatibility
QUICKWIN GRAPHICS WINDOWS LIB
See Also: Using QuickWin, RGBTOINTEGER, GETCOLORRGB, GETBKCOLORRGB, GETPIXELRRGB, GETPIXELSRGB, GETTEXTCOLORRGB
Example
! build as a QuickWin App.
USE DFLIB
INTEGER(4) r, g, b
CALL INTEGERTORGB(2456, r, g, b)
write(*,*) r, g, b
END