Raylib C++  1.0.0
Encapsulates the raylib library
Static Public Member Functions | List of all members
raylib::image::ImageGenerator Class Reference

Image generation functions. More...

#include <ImageGenerator.hpp>

Collaboration diagram for raylib::image::ImageGenerator:
Collaboration graph

Static Public Member Functions

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...
 

Detailed Description

Image generation functions.

Member Function Documentation

◆ 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
widththe width
heightthe height
tileSizethe tile size
Returns
the image
Here is the caller graph for this function:

◆ 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
widththe width
heightthe height
checksXthe checks x
checksYthe checks y
col1the col 1
col2the col 2
Returns
the image
Here is the call graph for this function:
Here is the caller graph for this function:

◆ genImageColor()

raylib::image::RlImage raylib::image::ImageGenerator::genImageColor ( const int &  width,
const int &  height,
const RlColor color 
)
static

Generate image: plain color.

Parameters
widththe width
heightthe height
colorthe color
Returns
the image
Here is the call graph for this function:
Here is the caller graph for this function:

◆ genImageGradientH()

raylib::image::RlImage raylib::image::ImageGenerator::genImageGradientH ( const int &  width,
const int &  height,
const RlColor left,
const RlColor right 
)
static

Generate image: horizontal gradient.

Parameters
widththe width
heightthe height
leftthe left color
rightthe right color
Returns
the image
Here is the call graph for this function:
Here is the caller graph for this function:

◆ genImageGradientRadial()

raylib::image::RlImage raylib::image::ImageGenerator::genImageGradientRadial ( const int &  width,
const int &  height,
float  density,
const RlColor inner,
const RlColor outer 
)
static

Generate image: radial gradient.

Parameters
widththe width
heightthe height
densitythe density
innerthe inner color
outerthe outer color
Returns
the image
Here is the call graph for this function:
Here is the caller graph for this function:

◆ genImageGradientV()

raylib::image::RlImage raylib::image::ImageGenerator::genImageGradientV ( const int &  width,
const int &  height,
const RlColor top,
const RlColor bottom 
)
static

Generate image: vertical gradient.

Parameters
widththe width
heightthe height
topthe top color
bottomthe bottom color
Returns
the image
Here is the call graph for this function:
Here is the caller graph for this function:

◆ genImageWhiteNoise()

raylib::image::RlImage raylib::image::ImageGenerator::genImageWhiteNoise ( const int &  width,
const int &  height,
float  factor 
)
static

Generate image: white noise.

Parameters
widththe width
heightthe height
factorthe factor
Returns
the image
Here is the caller graph for this function:

The documentation for this class was generated from the following files: