Blame toonz/sources/stdfx/gradients.h
|
Shinya Kitaoka |
810553 |
#pragma once
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#ifndef GRADIENTS_H
|
|
Toshihiro Shimizu |
890ddd |
#define GRADIENTS_H
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#include "tfxparam.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "trop.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "trasterfx.h"
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
struct MultiRAdialParams {
|
|
Shinya Kitaoka |
120a6e |
int m_shrink;
|
|
Shinya Kitaoka |
120a6e |
double m_scale;
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
double m_intensity;
|
|
Shinya Kitaoka |
120a6e |
double m_gridStep;
|
|
Toshihiro Shimizu |
890ddd |
};
|
|
Toshihiro Shimizu |
890ddd |
|
|
shun-iwasawa |
a92a49 |
enum GradientCurveType { EaseInOut = 0, Linear, EaseIn, EaseOut };
|
|
shun-iwasawa |
a92a49 |
|
|
Toshihiro Shimizu |
890ddd |
/*---------------------------------------------------------------------------*/
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
//! Deals with raster tiles and invokes multiradial functions
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
void multiRadial(const TRasterP &ras, TPointD posTrasf,
|
|
Shinya Kitaoka |
120a6e |
const TSpectrumParamP colors, double period, double count,
|
|
shun-iwasawa |
a92a49 |
double cycle, const TAffine &aff, double frame,
|
|
shun-iwasawa |
a92a49 |
double inner = 0.0, GradientCurveType type = Linear);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
void multiLinear(const TRasterP &ras, TPointD posTrasf,
|
|
Shinya Kitaoka |
120a6e |
const TSpectrumParamP colors, double period, double count,
|
|
Shinya Kitaoka |
120a6e |
double amplitude, double freq, double phase, double cycle,
|
|
shun-iwasawa |
a92a49 |
const TAffine &aff, double frame,
|
|
shun-iwasawa |
a92a49 |
GradientCurveType type = EaseInOut);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#endif
|