Rgba

constructor()

Allocate a new Rgba.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.


constructor(scope: <Error class: unknown class>)

Allocate a new Rgba using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

scope

The AutofreeScope to allocate this structure in.


constructor(red: <Error class: unknown class>, green: <Error class: unknown class>, blue: <Error class: unknown class>, alpha: <Error class: unknown class>)

Allocate a new Rgba.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.

Parameters

red

The intensity of the red channel from 0.0 to 1.0 inclusive

green

The intensity of the green channel from 0.0 to 1.0 inclusive

blue

The intensity of the blue channel from 0.0 to 1.0 inclusive

alpha

The opacity of the color from 0.0 for completely translucent to 1.0 for opaque


constructor(red: <Error class: unknown class>, green: <Error class: unknown class>, blue: <Error class: unknown class>, alpha: <Error class: unknown class>, scope: <Error class: unknown class>)

Allocate a new Rgba using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

red

The intensity of the red channel from 0.0 to 1.0 inclusive

green

The intensity of the green channel from 0.0 to 1.0 inclusive

blue

The intensity of the blue channel from 0.0 to 1.0 inclusive

alpha

The opacity of the color from 0.0 for completely translucent to 1.0 for opaque

scope

The AutofreeScope to allocate this structure in.


constructor(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)