Krita Source Code Documentation
Loading...
Searching...
No Matches
KoGradientHelper.h File Reference
#include <kritaflake_export.h>
#include <QGradient>

Go to the source code of this file.

Namespaces

namespace  KoGradientHelper
 

Functions

KRITAFLAKE_EXPORT QColor KoGradientHelper::colorAt (qreal position, const QGradientStops &stops)
 Calculates color at given position from given gradient stops.
 
KRITAFLAKE_EXPORT QGradient * KoGradientHelper::convertGradient (const QGradient *gradient, QGradient::Type newType)
 Converts gradient type, preserving as much data as possible.
 
KRITAFLAKE_EXPORT QGradient * KoGradientHelper::defaultGradient (QGradient::Type type, QGradient::Spread spread, const QGradientStops &stops)
 creates default gradient