Skip to content

TransRangeDesat

Type

TransRangeDesat

A custom translation range that maps to a desaturated colour gradient. See Translation for more info.

Inherits TransRange

All properties and functions of TransRange can be used in addition to those below.

Properties

Property Type Description
startR float The red component of the starting colour (0.0 - 2.0)
startG float The green component of the starting colour (0.0 - 2.0)
startB float The blue component of the starting colour (0.0 - 2.0)
endR float The red component of the ending colour (0.0 - 2.0)
endG float The green component of the ending colour (0.0 - 2.0)
endB float The blue component of the ending colour (0.0 - 2.0)

Constructors

No Constructors

This type can not be created directly in scripts.

See:

Functions

Overview

SetStartRGB(r, g, b) SetEndRGB(r, g, b)


SetStartRGB

Sets the starting colour of the desaturated gradient.

Parameters

  • r (float): Red component (0.0 - 2.0)
  • g (float): Green component (0.0 - 2.0)
  • b (float): Blue component (0.0 - 2.0)

SetEndRGB

Sets the ending colour of the desaturated gradient.

Parameters

  • r (float): Red component (0.0 - 2.0)
  • g (float): Green component (0.0 - 2.0)
  • b (float): Blue component (0.0 - 2.0)