Skip to main content

AssetParseOpacity

Callable

  • AssetParseOpacity(opacity: number, min?: number, max?: number): number

  • Parses and validates asset's opacity


    Parameters

    • opacity: number
    • min: number = 0

      The minimum opacity

    • max: number = 1

      The maximum opacity

    Returns number