Documentation

Utils
in package

Utility functionality for customize controls and output.

Table of Contents

Methods

calculateOverlay()  : mixed
Calculate rgba() from hex and alpha.
getValue()  : mixed
Get the value of a given setting ID. If it is currently in "save" mode, it returns the new value it tries to update.
hexToRgb()  : mixed
Calculate RGB from hex string.

Methods

calculateOverlay()

Calculate rgba() from hex and alpha.

public static calculateOverlay(string $hex, int $alpha) : mixed
Parameters
$hex : string
$alpha : int

getValue()

Get the value of a given setting ID. If it is currently in "save" mode, it returns the new value it tries to update.

public static getValue(string $id, AbstractCustomizePanel $panel) : mixed
Parameters
$id : string
$panel : AbstractCustomizePanel

hexToRgb()

Calculate RGB from hex string.

public static hexToRgb(string $hex) : mixed
Parameters
$hex : string

        
On this page

Search results