Function __global->calculate_themewizard_css_colours

Definitions

sources/themewizard.php

  • Calculate some component relating to a theme from a colour seed.
  • 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 Yes No required parameter N/A N/A Whether it will be a dark theme (null: autodetect)
$source_theme ID_TEXT No No required parameter N/A N/A The theme it's being generated from
$algorithm ID_TEXT No No required parameter equations hsv N/A The algorithm to use
$colours ?array No No Null N/A N/A The colour map to use (null: compute)
$landscape ?array No No Null N/A N/A The computed colour landscape to use (null: compute)
$lang ?LANGUAGE_NAME No No Null N/A N/A The language to work in (null: default)

Returns

  • A pair: extended map of colours, colour expression landscape
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Calculate some component relating to a theme from a colour seed.
 *
 * @param  string $seed Colour seed
 * @param  ?boolean $dark Whether it will be a dark theme (null: autodetect)
 * @param  ID_TEXT $source_theme The theme it's being generated from
 * @param  ID_TEXT $algorithm The algorithm to use
 * @set equations hsv
 * @param  ?array $colours The colour map to use (null: compute)
 * @param  ?array $landscape The computed colour landscape to use (null: compute)
 * @param  ?LANGUAGE_NAME $lang The language to work in (null: default)
 * @return array A pair: extended map of colours, colour expression landscape
 */

function calculate_themewizard_css_colours(string $seed, ?bool &$dark, string $source_theme, string $algorithm, ?array $colours = null, ?array $landscape = null, ?string $lang = null) : array