color_tint()

Applies a tint factor to an RGB color.

Syntax

color_tint(
   source STRING,
   factor DECIMAL )
 RETURNS STRING
  1. source is the source RGB color.
  2. factor is the tint factor.

Usage

This function modifies the RGB color specification by applying the tint factor passed as parameter.

Example

LET m = fglsvgcanvas.color_tint( "#FFAA34", 0.42 )