Function __global->_search_graph_color_pool
Definitions
sources/graphs.php
- Get a colour from the colour pool.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $i | integer | No | No | required parameter | N/A | N/A | Index |
| $color_pool | array | No | No | required parameter | N/A | N/A | Colour pool |
| $label | ?string | No | No | Null | N/A | N/A | Named colour label to look up (null: no named label) |
Returns
- Colour
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get a colour from the colour pool.
*
* @param integer $i Index
* @param array $color_pool Colour pool
* @param ?string $label Named colour label to look up (null: no named label)
* @return string Colour
*/
function _search_graph_color_pool(int $i, array $color_pool, ?string $label = null) : string
* Get a colour from the colour pool.
*
* @param integer $i Index
* @param array $color_pool Colour pool
* @param ?string $label Named colour label to look up (null: no named label)
* @return string Colour
*/
function _search_graph_color_pool(int $i, array $color_pool, ?string $label = null) : string

