|
|
|
|
|
PaletteGenerate (Function) In french: PaletteGénère Generates a palette from a base color. CustomPalette is Palette
CustomPalette = PaletteGenerate(0x7F67BE)
STC_Promo.BackgroundColor = CustomPalette[BackgroundSelection]
Syntax
Generating a new palette from a base color Hide the details
<Result> = PaletteGenerate(<Base color> [, <Secondary color>])
<Result>: Palette variable Palette variable corresponding to the generated palette. <Base color>: Integer Base color of the palette, used to generate all palette colors. This color can correspond to: <Secondary color>: Optional integer Secondary color of the palette. - If this parameter is not specified, the secondary color will be automatically calculated.
- If this parameter is specified, it will determine the secondary color. This color can correspond to:
- an RGB color (returned by RGB),
- an HSL color (returned by HSL),
- a WLanguage preset color,
- a variable of type Color.
Note: This parameter is only available from version 2025 Update 2.
Generating a palette to replace an existing one Hide the details
PaletteGenerate(<Palette> , <Base color> [, <Secondary color>])
<Palette>: Palette variable Palette variable corresponding to the palette to be replaced. <Base color>: Integer Base color of the palette, used to generate all palette colors. This color can correspond to: <Secondary color>: Optional integer Secondary color of the palette. - If this parameter is not specified, the secondary color will be automatically calculated.
- If this parameter is specified, it will determine the secondary color. This color can correspond to:
- an RGB color (returned by RGB),
- an HSL color (returned by HSL),
- a WLanguage preset color,
- a variable of type Color.
Note: This parameter is only available from version 2025 Update 2. Business / UI classification: UI Code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|