Clonk Developer Mode Documentation
Introduction
Contents
Search
Engine
Command Line
Game Data
Script
DoRGBaValue
Category:
Arithmetics
Since engine version:
4.9.1.0 GWE
Description
Adds a specified color value to a 32 bit color value.
iSelect
Selection
0
Alpha value
1
Red value
2
Green value
3
Blue value
Syntax
int
DoRGBaValue (
int
Val,
int
iChange,
int
iSelect);
Parameters
Val:
32 bit color value
iChange:
Color value to be added.
iSelect:
0-3: Color value to be changed
Remark
This function does not ensure maximum or minimum limits of color values.
Example
SetColorDw(DoRGBaValue(
GetColorDw
(
GetCursor
()),-20,1),
GetCursor
());
Reduces the red part of the currently selected clonk by 20.
See also:
GetRGBaValue
,
SetRGBaValue
Tyron, August 2004
Clonk Developer Mode Documentation
Introduction
Contents
Search
Engine
Command Line
Game Data
Script