Function fromRatio

  • If input is an object, force 1 into "1.0" to handle ratios properly String input requires "1.0" as input, so 1 will be treated as 1

    Parameters

    Returns TinyColor