Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F628543
gradient.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
824 B
Referenced Files
None
Subscribers
None
gradient.h
View Options
#ifndef _paintown_gradient_h
#define _paintown_gradient_h
#include
"bitmap.h"
#include
<stdint.h>
class
Token
;
namespace
Effects
{
class
Gradient
{
public
:
Gradient
();
Gradient
(
Graphics
::
Color
singleColor
);
Gradient
(
int
size
,
Graphics
::
Color
startColor
,
Graphics
::
Color
endColor
);
Gradient
(
const
Gradient
&
copy
);
Gradient
(
const
Token
*
token
);
Gradient
&
operator
=
(
const
Gradient
&
copy
);
/* move to next color. update is an alias for `forward' */
void
update
();
void
forward
();
void
backward
();
/* start at startColor */
void
reset
();
/* get current color */
Graphics
::
Color
current
()
const
;
Graphics
::
Color
current
(
int
offset
)
const
;
virtual
~
Gradient
();
protected
:
Graphics
::
Color
*
colors
;
uint32_t
size
;
uint32_t
index
;
};
}
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Nov 15, 4:24 AM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
138146
Default Alt Text
gradient.h (824 B)
Attached To
Mode
R75 R-Tech1
Attached
Detach File
Event Timeline