calculate_dynamic_css_colours
calculate_theme
execute_css_colour_expression
find_theme_dark
find_theme_image_themewizard_preview
find_theme_seed
fix_colour
generate_gradient
generate_logo
generate_recoloured_image
hsv_to_rgb
load_themewizard_params_from_theme
make_theme
parse_css_colour_expression
re_hue_image
rgb_to_hsv
theme_wizard_colours_to_css
theme_wizard_colours_to_sheet
themewizard_script
calculate_dynamic_css_colours(array $colours, \ID_TEXT $source_theme) : array
package | themewizard |
---|
array
Map of colours.
\ID_TEXT
The theme it's being generated from
array
A pair: extended map of colours, colour expression landscapecalculate_theme(string $seed, \ID_TEXT $source_theme, \ID_TEXT $algorithm, \ID_TEXT $show= 'colours'
, \?boolean $dark= null
, \?array $colours= null
, \?array $landscape= null
, \?LANGUAGE_NAME $lang= null
) : mixed
package | themewizard |
---|---|
set | equations hsv |
string
Colour seed.
\ID_TEXT
The theme it's being generated from
\ID_TEXT
The algorithm to use
\ID_TEXT
What to generate ('colours', or the name of a theme image).
\?boolean
Whether it will be a dark theme (null: autodetect).
\?array
The colour map to use (null: compute).
\?array
The computed colour landscape to use (null: compute).
\?LANGUAGE_NAME
The language to work in (null: default).
mixed
Image resource OR A pair: extended map of colours, colour expression landscapeexecute_css_colour_expression(mixed $expression, array $colours) : \?string
package | themewizard |
---|
mixed
Expression tree (array) OR leaf (string).
array
Known colours at this point.
\?string
RRGGBB colour or possibly just a number (null: answer cannot be computed).find_theme_dark(\ID_TEXT $theme) : boolean
package | themewizard |
---|
\ID_TEXT
The theme name
boolean
Whether the theme is darkfind_theme_image_themewizard_preview(\ID_TEXT $id, boolean $silent_fail = false
) : \?URLPATH
package | themewizard |
---|
\ID_TEXT
The theme image ID
boolean
Whether to silently fail (i.e. not give out an error message when a theme image cannot be found)
\?URLPATH
URL to image (null: use standard one, this one is not theme wizard influenced).find_theme_seed(\ID_TEXT $theme, boolean $no_easy_anchor = false
) : \ID_TEXT
package | themewizard |
---|
\ID_TEXT
The theme name
boolean
Whether we can't assume the theme has any Composr default colour information defined, if not in theme.ini
\ID_TEXT
The seed colourfix_colour(mixed $x, boolean $hue = false
) : integer
package | themewizard |
---|
mixed
Colour component (float or integer).
boolean
Whether this is hue (meaning it cycles around)
integer
Constrained colour component.generate_gradient(string $top, string $bottom) : resource
package | themewizard |
---|
string
Colour for the top.
string
Colour for the bottom.
resource
The imagegenerate_logo(string $name, string $font_choice= 'Vera'
, string $logo_theme_image= 'logo/default_logos/1'
, string $background_theme_image= 'logo/default_backgrounds/banner1'
, boolean $raw= false
, \?string $theme= null
, boolean $standalone_version= false
) : resource
package | themewizard |
---|
string
The site name.
string
The font name (in data/fonts).
string
The logo theme image.
string
The background theme image.
boolean
Whether to output the logo to the browser, destroy then image, and exit the script (i.e. never returns)
\?string
The theme to use the logo template from (null: default root zone theme).
boolean
Whether we are generating the standalone version (smaller, used in e-mails etc).
resource
The image resource.generate_recoloured_image(mixed $path, string $colour_a_orig, string $colour_a_new, string $colour_b1_orig, string $colour_b1_new, \?string $colour_b2_orig= null
, \?string $colour_b2_new= null
, string $gradient_direction= 'vertical'
, \?array $pixel_x_start_array= null
, integer $gradient_offset= 0
, boolean $end_array= false
) : resource
package | themewizard |
---|---|
set | vertical horizontal |
mixed
The image path OR a preloaded GD image resource
string
The colour code of what we have as our "minor" colour (often a border colour)
string
The colour code of what we want as our "minor" colour (often a border colour)
string
The colour code of what we have as our first major colour (often the only major colour)
string
The colour code of what we want as our first major colour (often the only major colour)
\?string
The colour code of what we have as our second major colour (the gradient target, at the bottom/right of the image) (null: not gradiented)
\?string
The colour code of what we want as our second major colour (the gradient target, at the bottom/right of the image) (null: not gradiented)
string
The directional code for the gradient
\?array
An array that is used to limit where we do our conversion on. It specifies, for each y-offset, the x-offset we start from (null: no such limitation)
integer
What the gradient assumed start-position will be offset by (in the gradient direction).
boolean
Whether the pixel_x_start array is actually an end array.
resource
The imagehsv_to_rgb(float $h, float $s, float $v) : string
package | themewizard |
---|
float
H component
float
S component
float
V component
string
RGB colour.load_themewizard_params_from_theme(\ID_TEXT $theme, boolean $guess_images_if_needed = false
)
package | themewizard |
---|
\ID_TEXT
The theme name
boolean
Whether we suspect the theme might not be well defined
make_theme(string $themename, \ID_TEXT $source_theme, \ID_TEXT $algorithm, string $seed, boolean $use, \?boolean $dark= false
, boolean $inherit_css= false
)
package | themewizard |
---|---|
set | equations hsv |
string
Name of the theme.
\ID_TEXT
The theme it's being generated from
\ID_TEXT
The algorithm to use
string
Seed colour to use.
boolean
Whether to use the theme immediately.
\?boolean
Whether it will be a dark theme (null: autodetect).
boolean
Whether to inherit the CSS, for easier theme upgrading.
parse_css_colour_expression(string $textual) : \?array
package | themewizard |
---|
string
Textual expression.
\?array
Expression tree (null: not real).re_hue_image(mixed $path, string $seed, \ID_TEXT $source_theme, boolean $also_s_and_v= false
, boolean $invert= false
) : resource
package | themewizard |
---|
mixed
The image path OR a preloaded GD image resource
string
The colour code of our hue
\ID_TEXT
The theme this is being generated from
boolean
Whether to also adjust the S and V components
boolean
Whether to invert the colours
resource
The imagergb_to_hsv(string $rgb) : array
package | themewizard |
---|
string
RRGGBB colour.
array
Triplet of (0-255) components: H, S, Vtheme_wizard_colours_to_css(string $contents, array $landscape, \ID_TEXT $source_theme, \ID_TEXT $algorithm, \ID_TEXT $seed) : string
package | themewizard |
---|---|
set | equations hsv |
string
CSS to apply to.
array
The colour expression landscape which we'll make substitutions using.
\ID_TEXT
The theme this is being generated from
\ID_TEXT
The algorithm to use
\ID_TEXT
The seed colour
string
The sheettheme_wizard_colours_to_sheet(\ID_TEXT $sheet, array $landscape, \ID_TEXT $source_theme, \ID_TEXT $algorithm, \ID_TEXT $seed) : string
package | themewizard |
---|---|
set | equations hsv |
\ID_TEXT
CSS filename of source file.
array
The colour expression landscape which we'll make substitutions using.
\ID_TEXT
The theme this is being generated from
\ID_TEXT
The algorithm to use
\ID_TEXT
The seed colour
string
The sheet