Function __global->_re_hue_image__raster
Definitions
sources/themewizard.php
- Helper for re_hue_image, raster images only.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $path | PATH | No | No | required parameter | N/A | N/A | The image path |
| $seed_h | integer | No | No | required parameter | N/A | N/A | Seed hue |
| $seed_s | integer | No | No | required parameter | N/A | N/A | Seed saturation |
| $seed_v | integer | No | No | required parameter | N/A | N/A | Seed value |
| $hue_dif | integer | No | No | required parameter | N/A | N/A | Hue difference |
| $sat_dif | integer | No | No | required parameter | N/A | N/A | Saturation difference |
| $val_dif | integer | No | No | required parameter | N/A | N/A | Value difference |
| $also_s_and_v | boolean | No | No | False | N/A | N/A | Whether to also adjust the S and V components |
| $invert | boolean | No | No | False | N/A | N/A | Whether to invert the colours |
Returns
- The image
- Type: resource
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Helper for re_hue_image, raster images only.
*
* @param PATH $path The image path
* @param integer $seed_h Seed hue
* @param integer $seed_s Seed saturation
* @param integer $seed_v Seed value
* @param integer $hue_dif Hue difference
* @param integer $sat_dif Saturation difference
* @param integer $val_dif Value difference
* @param boolean $also_s_and_v Whether to also adjust the S and V components
* @param boolean $invert Whether to invert the colours
* @return resource The image
*/
function _re_hue_image__raster(string $path, int $seed_h, int $seed_s, int $seed_v, int $hue_dif, int $sat_dif, int $val_dif, bool $also_s_and_v = false, bool $invert = false)
* Helper for re_hue_image, raster images only.
*
* @param PATH $path The image path
* @param integer $seed_h Seed hue
* @param integer $seed_s Seed saturation
* @param integer $seed_v Seed value
* @param integer $hue_dif Hue difference
* @param integer $sat_dif Saturation difference
* @param integer $val_dif Value difference
* @param boolean $also_s_and_v Whether to also adjust the S and V components
* @param boolean $invert Whether to invert the colours
* @return resource The image
*/
function _re_hue_image__raster(string $path, int $seed_h, int $seed_s, int $seed_v, int $hue_dif, int $sat_dif, int $val_dif, bool $also_s_and_v = false, bool $invert = false)

