deltanedas / rtfm

A documentation library mod for Mindustry.
GNU General Public License v3.0
78 stars 20 forks source link

control color is missing #23

Closed Bergiu closed 2 years ago

Bergiu commented 2 years ago

the documentation of control color is missing.

GUI: 2021-11-08_23-20

Documentation: 2021-11-08_23-21

Bergiu commented 2 years ago

Description

control color double r, g, b

The control color command can be used to change the color of illuminators. It takes values from 0 (low color) to 1 (much color).

Explanation

The behavior seems to be a little bit strange.

Color Values:

0: No color 0.5: Half color 1: Full color

But you can also use integer values:

0=256: No color 1: Full color 128: Half color

It seems that using values between 0-1 (higher values = more color) can be used for color selection, but also values from 1-256 (reverse order: higher values = less color).

Strange behavior:

With integer values sometimes g gets changed to random values: control color 1 0 128 result: r: 1, g: 128, b: 128

control color 1 0 256 result: r: 1, g: 1, b: 256

During to this, I think the right use of the command is to use values between 0 and 1.