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
  • srgbToLinearSrgb

Function srgbToLinearSrgb

  • srgbToLinearSrgb(x: number): number

    Converts an sRGB color channel to linear sRGB.

    Parameters

    • x: number

      The sRGB color channel value (0-255).

    Returns number

    The linear sRGB value (0-1).

    Throws

    If the input value is out of range.

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

Settings

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

Generated using TypeDoc