Sign in Join
FPDoc Onlineexperiment

RGB function

In unit LCLIntf

Combines Red, Green and Blue values into an TColorRef value.

Declaration

pascal
function RGB(R: Byte; G: Byte; B: Byte): TColorRef

Description

The bytes are shifted into place, following the format $00bbggrr, which is the format of the Windows API type COLORREF. Their actual physical order depends on the endian-ness of the machine.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.