Function __global->generate_themewizard_image

Definitions

sources/themewizard.php

  • Generate a Theme Wizard image.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

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 (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
$show ID_TEXT No No required parameter N/A N/A What theme image to generate
$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

  • Image resource OR Image string (null: did not happen)
  • Type: ?mixed
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Generate a Theme Wizard image.
 *
 * @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  ID_TEXT $show What theme image to generate
 * @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 ?mixed Image resource OR Image string (null: did not happen)
 */

function generate_themewizard_image(string $seed, ?bool $dark, string $source_theme, string $algorithm, string $show, ?array $colours = null, ?array $landscape = null, ?string $lang = null)