Vector4.this

Construct vector from color.

The vector values are normalized to [0, 1] for floats, and left as-is for ints.

  1. this(T X, T Y, T Z, T W)
  2. this(Vector!(U) other)
  3. this(Color source)
    struct Vector4(T)
    if (
    isNumeric!(T) ||
    is(T == bool)
    )

Parameters

source
Type: Color

The Color instance to create the vector from

Meta