Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_painting_tweaks.h File Reference
#include "kritaglobal_export.h"
#include <QPen>
#include <QBrush>
#include <QVector3D>
#include <QVector2D>

Go to the source code of this file.

Classes

struct  KisPaintingTweaks::PenBrushSaver::allow_noop_t
 
class  KisPaintingTweaks::PenBrushSaver
 

Namespaces

namespace  KisPaintingTweaks
 

Functions

QColor KisPaintingTweaks::blendColors (const QColor &c1, const QColor &c2, qreal r1)
 
qreal KisPaintingTweaks::colorDifference (const QColor &c1, const QColor &c2)
 
void KisPaintingTweaks::dragColor (QColor *color, const QColor &baseColor, qreal threshold)
 
void KisPaintingTweaks::initAntsPen (QPen *antsPen, QPen *outlinePen, int antLength, int antSpace)
 
qreal KisPaintingTweaks::luminosityCoarse (const QColor &c, bool sRGBtrc=true)
 luminosityCoarse This calculates the luminosity of the given QColor. It uses a very coarse (10 step) lut to linearize the sRGB trc, and then uses rec709 values to calculate the luminosity. Because of the effect of linearization, this is still more precise than one that just calculates based on coefficients.
 
void KisPaintingTweaks::rectToTexCoords (QVector2D *texCoords, const QRectF &rc)
 
void KisPaintingTweaks::rectToVertices (QVector3D *vertices, const QRectF &rc)
 
QRect KisPaintingTweaks::safeClipBoundingRect (const QPainter &painter)
 
QRegion KisPaintingTweaks::safeClipRegion (const QPainter &painter)