7#ifndef KO_GRADIENT_HELPER_H
8#define KO_GRADIENT_HELPER_H
10#include <kritaflake_export.h>
17KRITAFLAKE_EXPORT QGradient *
defaultGradient(QGradient::Type type, QGradient::Spread spread,
const QGradientStops &stops);
20KRITAFLAKE_EXPORT QGradient *
convertGradient(
const QGradient *gradient, QGradient::Type newType);
23KRITAFLAKE_EXPORT QColor
colorAt(qreal position,
const QGradientStops &stops);
KRITAFLAKE_EXPORT QGradient * convertGradient(const QGradient *gradient, QGradient::Type newType)
Converts gradient type, preserving as much data as possible.
KRITAFLAKE_EXPORT QColor colorAt(qreal position, const QGradientStops &stops)
Calculates color at given position from given gradient stops.
KRITAFLAKE_EXPORT QGradient * defaultGradient(QGradient::Type type, QGradient::Spread spread, const QGradientStops &stops)
creates default gradient