-
Notifications
You must be signed in to change notification settings - Fork 0
/
Glow.h
55 lines (46 loc) · 948 Bytes
/
Glow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#include <allegro.h>
/*
Developed by Regson Jaques
https://www.youtube.com/user/tictacKode/playlists
https://github.com/tictackode
https://www.facebook.com/groups/ProgDesafios/
*/
class Glow
{
public:
int fontaux;
bool desceCor;
Glow()
{
this->desceCor=false;
this->fontaux=0;
}
~Glow()
{
//delete(this);
}
void reset()
{
this->fontaux=0;
this->desceCor=false;
}
void glowingColor()
{
if((this->fontaux<255)&&(this->desceCor==false))
{
this->fontaux++;
}
if(this->fontaux==0)
{
this->desceCor=false;
}
if(this->fontaux==255)
{
this->desceCor=true;
}
if((this->fontaux>0)&&(this->desceCor==true))
{
this->fontaux--;
}
}
}glow;