Options
All
  • Public
  • Public/Protected
  • All
Menu

Some helpfull methods to create Colorbuffers.

Hierarchy

  • ColorHelper

Index

Methods

Static CreateColorArray

  • Generates a Color array from a given Vector.

    Parameters

    • color: Vector3 | Vector4

      Takes a color as a Vector and gives out an array of Colors.

    • count: number

      The length of the resulting array.

    Returns Vector4[]

Static ToNumberArray

  • ToNumberArray(colors: Vector4[]): number[]
  • Returns the numbers for use in a Vertexbuffer.

    Parameters

    • colors: Vector4[]

      Array to convert.

    Returns number[]

Generated using TypeDoc