Skip to main content

system.kanoa.utilities.RGBtoHex

This function requires KanoaCore module

Description

Converts RGB color value to HEX value (kanoaCore).

Syntax

RGBtoHex(red, green, blue)
  • Parameters
      red (Int) - The red component of the RGB color.
      green (Int) - The green component of the RGB color.
      blue (Int) - The blue component of the RGB color.
  • Returns
      hexColor (String) - The HEX color value.
  • Code Example

    # Example Usage:
    hex_color = system.kanoa.utilities.RGBtoHex(255, 0, 0)