KisMagneticGraph::vertex_descriptor source(typename KisMagneticGraph::edge_descriptor e, KisMagneticGraph g)
qreal distance(const QPointF &p1, const QPointF &p2)
QHash< QString, QVariant > m_params
void paintParticle(QPointF pos, const KoColor &color, qreal weight)
paint wu particle by copying the color and setup just the opacity, weight is complementary to opacity...
const KoCompositeOp * m_compositeOp
QVector< Bristle * > m_bristles
void plotPixel(int wx, int wy, const KoColor &color)
composite single pixel to dab
void opacityDepletion(Bristle *bristle, KoColor &bristleColor, qreal pressure, qreal inkDepletion)
simulate running out of ink through opacity decreasing
const KisHairyProperties * m_properties
void saturationDepletion(Bristle *bristle, KoColor &bristleColor, qreal pressure, qreal inkDepletion)
simulate running out of saturation
KoColorTransformation * m_transfo
void setInkColor(const KoColor &color)
set ink color for the whole bristle shape
void colorifyBristles(KisPaintDeviceSP source, QPointF point)
similar to sample input color in spray
void addBristleInk(Bristle *bristle, const QPointF &pos, const KoColor &color)
paints single bristle
double computeMousePressure(double distance)
compute mouse pressure according distance
void darkenPixel(int wx, int wy, const KoColor &color)
check the opacity of dab pixel and if the opacity is less than color, it will copy color to dab
void fromDabWithDensity(KisFixedPaintDeviceSP dab, qreal density)
set the shape of the bristles according the dab
void repositionBristles(double angle, double slope)
void setProperties(KisHairyProperties *properties)
set parameters for the brush engine
KisRandomAccessorSP m_dabAccessor
void paintLine(KisPaintDeviceSP dab, KisPaintDeviceSP layer, const KisPaintInformation &pi1, const KisPaintInformation &pi2, qreal scale, qreal rotation)
qreal fetchInkDepletion(Bristle *bristle, int inkDepletionSize)
fetch actual ink status according depletion curve
quint8 bristleInkAmountWeight
quint8 inkDepletionWeight
quint8 bristleLengthWeight
QVector< qreal > inkDepletionCurve