CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::Paint::BoxGradient Struct Reference

A structure that describes a box gradient. More...

#include <CeresEngine/Graphics/Shape.hpp>

Public Attributes

Color startingColor
 The gradient starting color.
 
Color endingColor
 The gradient ending color.
 
Rect2 box
 Defines the box in which the gradient should be drawn.
 
double radius
 Defines the corner radius.
 
double feather
 Feather defines how blurry the border of the rectangle is.
 

Detailed Description

A structure that describes a box gradient.

Box gradient is a feathered rounded rectangle, it is useful for rendering drop shadows or highlights for boxes.

Member Data Documentation

◆ box

Rect2 CeresEngine::Paint::BoxGradient::box

Defines the box in which the gradient should be drawn.

◆ endingColor

Color CeresEngine::Paint::BoxGradient::endingColor

The gradient ending color.

◆ feather

double CeresEngine::Paint::BoxGradient::feather

Feather defines how blurry the border of the rectangle is.

◆ radius

double CeresEngine::Paint::BoxGradient::radius

Defines the corner radius.

◆ startingColor

Color CeresEngine::Paint::BoxGradient::startingColor

The gradient starting color.


The documentation for this struct was generated from the following file: