Skip to content

Documentation / @sw-file-lib/core / MeshColor4

Interface: MeshColor4 ​

ts
interface MeshColor4 {
  r: number;
  g: number;
  b: number;
  a: number;
}

Defined in: mesh/index.ts:22

An RGBA vertex color.

Each component is stored as an 8-bit unsigned value (0–255).

Properties ​

PropertyTypeDescription

r

number

Red channel.

g

number

Green channel.

b

number

Blue channel.

a

number

Alpha channel.