Skip to content
TREN
Atlıhan Harita

LCC for Web User Manual · API Reference

LCCObject::setSemanticColor

Chapter 06.38 / 07Manual version v0.6.4English

Sets the colors for AI semantic coloring.

Version Requirement

SDK v0.5.5+

Engine Support

Three.js / CesiumJS

API

LCCObject::setSemanticColor(value: number[][]): void

Parameters

ParameterTypeRequiredDefaultDescription
valuenumber[][]Yes-Color array, each element in [R, G, B] format. Maximum 100 colors.

Return Value

void

Usage Example

const newColor = [
    [255, 82, 82],
    [238, 177, 20],
    // ... more colors
];
lccObject.setSemanticColor(newColor);

Notes

  • Maximum of 100 colors can be set.
  • This method depends on AI semantic labels in the LCC data. If the LCC data has not been AI-labeled, it will have no effect.
  • LCCObject::setSemantic()

This chapter is from the official XGRIDS user manual. Official source (opens in a new tab) · Updated:

XGRIDS Türkiye

We're With You During Setup and in the Field

Atlıhan Harita provides training and technical support for device setup, firmware updates, software use, and field applications. Send us your question and our specialist will get back to you.

+90 216 546 0804