Protected Member Functions

SmudgeBrush Class Reference

This brush implements smudging using the mask from the superclass. More...

#include <SmudgeBrush.h>

Inherits QuadraticBrush.

Collaboration diagram for SmudgeBrush:
Collaboration graph
[legend]

List of all members.

Protected Member Functions

void makeMask ()
 Constructs the mask for this brush.
void pickUpPaint (int x, int y, Canvas2D *canvas)
 Copy paint in the bounding box of the brush from canvas to m_paint.
virtual void paintOnce (int x, int y, Canvas2D *canvas)
 Apply the brush one time to the given canvas centered at (x,y).

Detailed Description

This brush implements smudging using the mask from the superclass.


Member Function Documentation

void SmudgeBrush::makeMask (  )  [protected, virtual]

Constructs the mask for this brush.

create a mask with a distribution of your choice (probably want to use quadratic for best results)

Reimplemented from QuadraticBrush.

void SmudgeBrush::pickUpPaint ( int  x,
int  y,
Canvas2D canvas 
) [protected]

Copy paint in the bounding box of the brush from canvas to m_paint.

Picks up paint from the canvas before drawing begins.


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