⚠️ This site is under development, some artefacts may be missing or incomplete.
PIXEL UI
OffsetColor

OffsetColor

Color PIXEL.OffsetColor( Color color, number offset )

Description

Offsets the RGB components of the colour by the given amount.

Arguments

Color color

The color to offset the values of.

number offset

The amount to offset by.

Returns

Color

A new color instance with the offset RGB values.


Color:Offset

Color Color:Offset( number offset )

Description

Offsets the RGB components of the color the method was called on by the given amount.

Arguments

number offset

The amount to offset by.

Returns

Color

The color the method was called on.