This page has been translated automatically.
Видеоуроки
Интерфейс
Основы
Продвинутый уровень
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Профессиональный уровень (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Контроль версий
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Sandworm
Использование инструментов редактора для конкретных задач
Расширение функционала редактора
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World-ноды
Звуковые объекты
Объекты поиска пути
Player-ноды
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Плагины
Форматы файлов
Материалы и шейдеры
Rebuilding the Engine Tools
Интерфейс пользователя (GUI)
Двойная точность координат
API
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
Работа с контентом
Оптимизация контента
Материалы
Визуальный редактор материалов
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Учебные материалы

Unigine.Palette Class

This structure represents a set of values for 12 major colors of the color spectre used to define saturation and hue adjustment.

The following code snippet shows a usage example:

Source code (C#)
Palette p = new Palette(0.5f);
Render.ColorCorrectionHueShift = p;

Palette Class

Перечисления (Enums)

Color#

ИмяОписание
RED = 0Red color.
ORANGE = 1Orange color.
YELLOW = 2Yellow color.
CHARTREUSE = 3Chartreuse color.
GREEN = 4Green color.
SPRINGGREEN = 5Spring Green color.
CYAN = 6Cyan color.
AZURE = 7Azure color.
BLUE = 8Blue color.
VIOLET = 9Violet color.
MAGENTA = 10Magenta color.
ROSE = 11Rose color.
SIZE = 12The number of colors.

Members


Palette ( ) #

Constructor. Initializes the structure with zero values.

Palette ( Palette palette ) #

Constructor. Initializes the structure using the given Palette.

Arguments

  • Palette palette - Source Palette.

Palette ( float value ) #

Constructor. Initializes the structure using the given float for all values.

Arguments

  • float value - value to be set for all color values.

Palette operator= ( Palette palette ) #

Performs structure assignment. Destination palette = source palette.

Arguments

  • Palette palette - Source palette.

Return value

Result.

bool Equals ( Palette palette ) #

Check if two palettes are the same.

Arguments

  • Palette palette - The second palette.

Return value

Returns true if the palettes are the same; otherwise, false.

bool Equals ( float value ) #

Check if all values of the palette are equal to the given value.

Arguments

  • float value - The value to check.

Return value

Returns true if all values of the palette are equal to the given value; otherwise, false.

bool NotEquals ( Palette palette ) #

Check if two palettes are not the same.

Arguments

  • Palette palette - The second palette.

Return value

Returns true if the palettes are not the same; otherwise, false.

bool NotEquals ( float value ) #

Check if all values of the palette are not equal to the given value.

Arguments

  • float value - The value to check.

Return value

Returns true if any value of the palette is not equal to the given value; otherwise, false.

void Clear ( float value = 0.0f ) #

Sets all color values to the given value.

Arguments

  • float value - The new value.

void Copy ( Palette src ) #

Copies all values from the given palette.

Arguments

  • Palette src - The source palette.

void SetColor ( Palette.Color color, float value ) #

Sets the given color to the given value.

Arguments

void GetColor ( Palette.Color src ) #

Returns the color value.

Arguments

Last update: 19.04.2024
Build: ()