Function __global->themewizard_colours_to_css
Definitions
sources/themewizard.php
- Rewrite some CSS code according to a CSS landscape.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $contents | string | No | No | required parameter | N/A | N/A | CSS to apply to |
| $landscape | array | No | No | required parameter | N/A | N/A | The colour expression landscape which we'll make substitutions using |
| $source_theme | ID_TEXT | No | No | required parameter | N/A | N/A | The theme this is being generated from |
| $algorithm | ID_TEXT | No | No | required parameter | equations hsv | N/A | The algorithm to use |
| $seed | ID_TEXT | No | No | required parameter | N/A | N/A | The seed colour |
Returns
- The sheet
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Rewrite some CSS code according to a CSS landscape.
*
* @param string $contents CSS to apply to
* @param array $landscape The colour expression landscape which we'll make substitutions using
* @param ID_TEXT $source_theme The theme this is being generated from
* @param ID_TEXT $algorithm The algorithm to use
* @set equations hsv
* @param ID_TEXT $seed The seed colour
* @return string The sheet
*/
function themewizard_colours_to_css(string $contents, array $landscape, string $source_theme, string $algorithm, string $seed) : string
* Rewrite some CSS code according to a CSS landscape.
*
* @param string $contents CSS to apply to
* @param array $landscape The colour expression landscape which we'll make substitutions using
* @param ID_TEXT $source_theme The theme this is being generated from
* @param ID_TEXT $algorithm The algorithm to use
* @set equations hsv
* @param ID_TEXT $seed The seed colour
* @return string The sheet
*/
function themewizard_colours_to_css(string $contents, array $landscape, string $source_theme, string $algorithm, string $seed) : string

