Add-On Documentation
  • Preparing search index...
  • The search index is not available
8Crafter's Server Utilities API
  • 8Crafter's Server Utilities API
  • Globals
  • modules
  • colorCore
  • rgbToHex

Function rgbToHex

  • rgbToHex(
        rgb: ../../../../AppData/Roaming/.minecraft_bedrock/installations/Main Release/packageData/development_behavior_packs/DebugSticksAndScreens/node_modules/color-core/dist.RGB,
        includeAlpha?: boolean,
    ): string

    Converts RGB values to a hex color code.

    Parameters

    • rgb: ../../../../AppData/Roaming/.minecraft_bedrock/installations/Main Release/packageData/development_behavior_packs/DebugSticksAndScreens/node_modules/color-core/dist.RGB

      An object with r, g, and b properties, and an optional a property.

    • OptionalincludeAlpha: boolean

      Whether to include the alpha channel in the hex string.

    Returns string

    The hex color code.

    Throws

    If the input is not a valid RGB object or if RGB values are out of range.

    • Defined in ../../../../AppData/Roaming/.minecraft_bedrock/installations/Main Release/packageData/development_behavior_packs/DebugSticksAndScreens/node_modules/color-core/dist/conversions/components/hex.d.ts:9

Settings

Member Visibility
Add-On Documentation
8Crafter's Server Utilities API
  • Loading...

Generated using TypeDoc