Image generation functions.
More...
#include <ImageGenerator.hpp>
|
| static RlImage | genImageColor (const int &width, const int &height, const RlColor &color) |
| | Generate image: plain color. More...
|
| |
| static RlImage | genImageGradientV (const int &width, const int &height, const RlColor &top, const RlColor &bottom) |
| | Generate image: vertical gradient. More...
|
| |
| static RlImage | genImageGradientH (const int &width, const int &height, const RlColor &left, const RlColor &right) |
| | Generate image: horizontal gradient. More...
|
| |
| static RlImage | genImageGradientRadial (const int &width, const int &height, float density, const RlColor &inner, const RlColor &outer) |
| | Generate image: radial gradient. More...
|
| |
| static RlImage | genImageChecked (const int &width, const int &height, const int &checksX, const int &checksY, const RlColor &col1, const RlColor &col2) |
| | Generate image: checked. More...
|
| |
| static RlImage | genImageWhiteNoise (const int &width, const int &height, float factor) |
| | Generate image: white noise. More...
|
| |
| static RlImage | genImageCellular (const int &width, const int &height, const int &tileSize) |
| | Generate image: cellular algorithm. Bigger tileSize means bigger cells. More...
|
| |
Image generation functions.
◆ genImageCellular()
| raylib::image::RlImage raylib::image::ImageGenerator::genImageCellular |
( |
const int & |
width, |
|
|
const int & |
height, |
|
|
const int & |
tileSize |
|
) |
| |
|
static |
Generate image: cellular algorithm. Bigger tileSize means bigger cells.
- Parameters
-
| width | the width |
| height | the height |
| tileSize | the tile size |
- Returns
- the image
◆ genImageChecked()
| raylib::image::RlImage raylib::image::ImageGenerator::genImageChecked |
( |
const int & |
width, |
|
|
const int & |
height, |
|
|
const int & |
checksX, |
|
|
const int & |
checksY, |
|
|
const RlColor & |
col1, |
|
|
const RlColor & |
col2 |
|
) |
| |
|
static |
Generate image: checked.
- Parameters
-
| width | the width |
| height | the height |
| checksX | the checks x |
| checksY | the checks y |
| col1 | the col 1 |
| col2 | the col 2 |
- Returns
- the image
◆ genImageColor()
Generate image: plain color.
- Parameters
-
| width | the width |
| height | the height |
| color | the color |
- Returns
- the image
◆ genImageGradientH()
Generate image: horizontal gradient.
- Parameters
-
| width | the width |
| height | the height |
| left | the left color |
| right | the right color |
- Returns
- the image
◆ genImageGradientRadial()
Generate image: radial gradient.
- Parameters
-
| width | the width |
| height | the height |
| density | the density |
| inner | the inner color |
| outer | the outer color |
- Returns
- the image
◆ genImageGradientV()
Generate image: vertical gradient.
- Parameters
-
| width | the width |
| height | the height |
| top | the top color |
| bottom | the bottom color |
- Returns
- the image
◆ genImageWhiteNoise()
| raylib::image::RlImage raylib::image::ImageGenerator::genImageWhiteNoise |
( |
const int & |
width, |
|
|
const int & |
height, |
|
|
float |
factor |
|
) |
| |
|
static |
Generate image: white noise.
- Parameters
-
| width | the width |
| height | the height |
| factor | the factor |
- Returns
- the image
The documentation for this class was generated from the following files: