API Referenceatlasatlas/graphics
Cubemap
Cube texture assembled from face resources, with helpers for updating face colors.
Module: atlas/graphics
Cube texture assembled from face resources, with helpers for updating face colors.
Declaration
export class Cubemap { ... }Constructors
Creates a new cubemap.
constructor(resources: Resource[]);Properties
resources
The resources in this group.
resources: Resource[];id
The runtime identifier for this object.
id: number;Methods
getAverageColor
Returns average color.
getAverageColor(): Color;fromResourceGroup
Creates a value from resource group.
static fromResourceGroup(resourceGroup: ResourceGroup): Cubemap | null;updateWithColors
Update with colors.
updateWithColors(colors: Color[]): void;