#include <brush.h>

Public Member Functions

 Brush ()
 Brush (const Colorf &color)

Static Public Member Functions

static Brush solid (float r, float g, float b, float a=1.0f)
static Brush solid (const Colorf &color)
static Brush solid_rgb8 (int r, int g, int b)
static Brush solid_rgba8 (int r, int g, int b, int a)

Public Attributes

Pointf center_point
Colorf color
Pointf end_point
Pointf gradient_origin_offset
Image image
BrushInterpolateMode interpolate = BrushInterpolateMode::linear
float opacity = 1.0f
float radius_x = 0.0f
float radius_y = 0.0f
Pointf start_point
std::vector< BrushGradientStopstops
Mat3f transform = Mat3f::identity()
BrushType type = BrushType::solid
BrushWrapMode wrap_x = BrushWrapMode::wrap
BrushWrapMode wrap_y = BrushWrapMode::wrap

Constructor & Destructor Documentation

clan::Brush::Brush ( )
clan::Brush::Brush ( const Colorf color)

Member Function Documentation

static Brush clan::Brush::solid ( float  r,
float  g,
float  b,
float  a = 1.0f 

References clan::a, and color.

static Brush clan::Brush::solid ( const Colorf color)

References color.

static Brush clan::Brush::solid_rgb8 ( int  r,
int  g,
int  b 

References color.

static Brush clan::Brush::solid_rgba8 ( int  r,
int  g,
int  b,
int  a 

References color.

Member Data Documentation

Pointf clan::Brush::center_point
Colorf clan::Brush::color

Referenced by solid(), solid_rgb8(), and solid_rgba8().

Pointf clan::Brush::end_point
Pointf clan::Brush::gradient_origin_offset
Image clan::Brush::image
float clan::Brush::opacity = 1.0f
float clan::Brush::radius_x = 0.0f
float clan::Brush::radius_y = 0.0f
Pointf clan::Brush::start_point
std::vector<BrushGradientStop> clan::Brush::stops
Mat3f clan::Brush::transform = Mat3f::identity()
BrushType clan::Brush::type = BrushType::solid
BrushWrapMode clan::Brush::wrap_x = BrushWrapMode::wrap
BrushWrapMode clan::Brush::wrap_y = BrushWrapMode::wrap

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