Rgba
Allocate a new Rgba.
This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.
Allocate a new Rgba using the provided AutofreeScope.
The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped
.
Parameters
The AutofreeScope to allocate this structure in.
Allocate a new Rgba.
This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.
Parameters
The intensity of the red channel from 0.0 to 1.0 inclusive
The intensity of the green channel from 0.0 to 1.0 inclusive
The intensity of the blue channel from 0.0 to 1.0 inclusive
The opacity of the color from 0.0 for completely translucent to 1.0 for opaque
Allocate a new Rgba using the provided AutofreeScope.
The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped
.
Parameters
The intensity of the red channel from 0.0 to 1.0 inclusive
The intensity of the green channel from 0.0 to 1.0 inclusive
The intensity of the blue channel from 0.0 to 1.0 inclusive
The opacity of the color from 0.0 for completely translucent to 1.0 for opaque
The AutofreeScope to allocate this structure in.