APP_PHPColors::smart_scale( int $amount = self::DEFAULT_ADJUST, string $threshold = 130 )
Scales a color to be lighter if it’s light, or darker if it’s dark.
Package
Description Description
Use this function to tint a color appropriate to its lightness.
Parameters Parameters
- $amount
(int) (Optional) The amount of lightness/darkness that needs to be adjasted to a given color.
Default value: self::DEFAULT_ADJUST
- $threshold
(string) (Optional) Threshold of lightness to check against.
Default value: 130
Return Return
(string)