Skip to content

Documentation / @sw-file-lib/xml / XmlRgbImmutable

Interface: XmlRgbImmutable ​

ts
interface XmlRgbImmutable {
  readonly r?: number;
  readonly g?: number;
  readonly b?: number;
}

Defined in: packages/xml/src/schemas/generated/common-immutable.ts:52

Represents elements with r, g, and b attributes in Stormworks XML data.

This is the recommended type for function parameters when it does not need to modify the value. Use XmlRgb instead if mutation is required.

See ​

Properties ​

PropertyModifierType

r?

readonly

number

g?

readonly

number

b?

readonly

number