Click or drag to resize

ColorByte Constructor (Single, Single, Single, Single)

Constructs an RGBA color from scalars representing red, green, blue and alpha values.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public ColorByte(
	float r,
	float g,
	float b,
	float alpha = 1f
)

Parameters

r
Type: SystemSingle
Red component value from 0.0f to 1.0f.
g
Type: SystemSingle
Green component value from 0.0f to 1.0f.
b
Type: SystemSingle
Blue component value from 0.0f to 1.0f.
alpha (Optional)
Type: SystemSingle
Alpha component value from 0.0f to 1.0f.
See Also