-
Notifications
You must be signed in to change notification settings - Fork 0
/
Anthromorph.pde
126 lines (111 loc) · 2.34 KB
/
Anthromorph.pde
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
class Anthromorph
{
/***
*
* another attempt to create a scalable figure
* based on SimpleFigure class
*
*
* rectMode(CENTER);
* rect(50, 75, 50, 50, 10);
* ellipse(50, 25, 50, 50);
*
*/
int myX;
int myY;
int myRadius;
int myWidth; // = myRadius*2;
int myHeight; // = myRadius*4;
int myVelX;
int myVelY;
int myRed;
int myGreen;
int myBlue;
color myHeadRGB;
color myTorsoRGB;
//default constructor
Anthromorph()
{
myX = 50;
myY = 50;
myRadius = 10;
myWidth = myRadius*2;
myHeight = myWidth*2;
myVelX = 1;
myVelY = 1;
myRed = 200;
myGreen = 200;
myBlue = 200;
myHeadRGB = color(255, 200, 200); // should be pink
myTorsoRGB = color(255, 200, 200); // should be pink
}
//constructor
Anthromorph(int inX, int inY)
{
myX = inX;
myY = inY;
myRadius = 10;
myWidth = myRadius*2;
myHeight = myWidth*2;
myVelX = 1;
myVelY = 1;
myRed = 200;
myGreen = 200;
myBlue = 200;
myHeadRGB = color(255, 200, 200); // should be pink
myTorsoRGB = color(255, 200, 200); // should be pink
}
Anthromorph(int inX, int inY, int inRadius)
{
myX = inX;
myY = inY;
myRadius = inRadius;
myWidth = myRadius*2;
myHeight = myWidth*2;
myVelX = 1;
myVelY = 1;
myRed = 200;
myGreen = 200;
myBlue = 200;
myHeadRGB = color(255, 200, 200); // should be pink
myTorsoRGB = color(255, 200, 200); // should be pink
}
Anthromorph(int inX, int inY, int inW, int inH)
{
myY = inX;
myY = inY;
myWidth = inW;
myHeight = inH;
myRadius = inW/2;
myVelX = 1;
myVelY = 1;
myRed = 200;
myGreen = 200;
myBlue = 200;
myHeadRGB = color(255, 200, 200); // should be pink
myTorsoRGB = color(255, 200, 200); // should be pink
}
Anthromorph(int inX, int inY, int inW, int inH, int inVelX, int inVelY)
{
myY = inX;
myY = inY;
myWidth = inW;
myHeight = inH;
myRadius = inW/2;
myVelX = inVelX;
myVelY = inVelY;
myRed = 200;
myGreen = 200;
myBlue = 200;
myHeadRGB = color(255, 200, 200); // should be pink
myTorsoRGB = color(255, 200, 200); // should be pink
}
//setters
void setColor()
{
myHeadRGB = color(255,255,255);
myTorsoRGB = color(255,255,255);
}
//getters
//methods
}