Function __global->_calculate_themewizard_dynamic_css_colours
Definitions
sources/themewizard.php
- Augment an array of CSS colours with colours that are derived actually inside the CSS-sheets.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $seed | string | No | No | required parameter | N/A | N/A | Colour seed |
| $dark | boolean | No | No | required parameter | N/A | N/A | Whether it will be a dark theme |
| $colours | array | No | No | required parameter | N/A | N/A | Map of colours |
| $source_theme | ID_TEXT | No | No | required parameter | N/A | N/A | The theme it's being generated from |
Returns
- A pair: extended map of colours, colour expression landscape
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Augment an array of CSS colours with colours that are derived actually inside the CSS-sheets.
*
* @param string $seed Colour seed
* @param boolean $dark Whether it will be a dark theme
* @param array $colours Map of colours
* @param ID_TEXT $source_theme The theme it's being generated from
* @return array A pair: extended map of colours, colour expression landscape
*/
function _calculate_themewizard_dynamic_css_colours(string $seed, bool $dark, array $colours, string $source_theme) : array
* Augment an array of CSS colours with colours that are derived actually inside the CSS-sheets.
*
* @param string $seed Colour seed
* @param boolean $dark Whether it will be a dark theme
* @param array $colours Map of colours
* @param ID_TEXT $source_theme The theme it's being generated from
* @return array A pair: extended map of colours, colour expression landscape
*/
function _calculate_themewizard_dynamic_css_colours(string $seed, bool $dark, array $colours, string $source_theme) : array

