Skip to content

TSdlColorF

A structure that represents a color as floating-point RGBA components.

The bits of this structure can be directly reinterpreted as a float-packed color which uses the TSdlPixelFormat.Rgba128Float format.

Definition

Unit: Neslib.Sdl3.Video

type TSdlColorF = record ... end;

Fields

Name Description
A
B
G
R

Constructors

Name Description
Create Create a color.

Methods

Name Description
Init Initializes the a color.

Field Descriptions

A

var A: Single

Type: Single


B

var B: Single

Type: Single


G

var G: Single

Type: Single


R

var R: Single

Type: Single


Constructor Descriptions

Create

Create a color.

constructor Create(const AR, AG, AB: Single; const AA: Single = 1)

Parameters

AR: Single : The red value.

AG: Single : The green value.

AB: Single : The blue value.

AA: Single = 1 : (Optional) alpha value. Defaults to 1.0

Remarks

It is safe to call this constructor from any thread.


Method Descriptions

Init(Single, Single, Single, Single)

Initializes the a color.

procedure Init(const AR, AG, AB: Single; const AA: Single = 1); inline

Parameters

AR: Single : The red value.

AG: Single : The green value.

AB: Single : The blue value.

AA: Single = 1 : (Optional) alpha value. Defaults to 1.0

Remarks

It is safe to call this method from any thread.