|
Krita Source Code Documentation
|
Functions | |
| KRITAFLAKE_EXPORT QColor | colorAt (qreal position, const QGradientStops &stops) |
| Calculates color at given position from given gradient stops. | |
| KRITAFLAKE_EXPORT QGradient * | convertGradient (const QGradient *gradient, QGradient::Type newType) |
| Converts gradient type, preserving as much data as possible. | |
| KRITAFLAKE_EXPORT QGradient * | defaultGradient (QGradient::Type type, QGradient::Spread spread, const QGradientStops &stops) |
| creates default gradient | |
| QColor KoGradientHelper::colorAt | ( | qreal | position, |
| const QGradientStops & | stops ) |
Calculates color at given position from given gradient stops.
Definition at line 93 of file KoGradientHelper.cpp.
| QGradient * KoGradientHelper::convertGradient | ( | const QGradient * | gradient, |
| QGradient::Type | newType ) |
Converts gradient type, preserving as much data as possible.
Definition at line 35 of file KoGradientHelper.cpp.
References M_PI.
| QGradient * KoGradientHelper::defaultGradient | ( | QGradient::Type | type, |
| QGradient::Spread | spread, | ||
| const QGradientStops & | stops ) |
creates default gradient
Definition at line 12 of file KoGradientHelper.cpp.