Vec4

fun Vec4(@ColorInt color: Int): Vec4<Float>

Deprecated

Use Int.toVec4() instead

Replace with

import graphics.glimpse.types.toVec4
color.toVec4()

Returns a Vec4 representation of a given color.

inline fun <T : Number, Comparable<T>> Vec4(x: T, y: T, z: T, w: T): Vec4<T>

Returns a new 4D vector with coordinates (x, y, z, w).

Since

v2.0.0

fun Vec4(color: Color): Vec4<Float>

Deprecated

Use Color.toVec4() instead

Replace with

import graphics.glimpse.types.toVec4
color.toVec4()

Returns a Vec4 representation of a given color.