Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 077f6df306
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (28 sloc) 0.709 kB
class GaitPhase {
int startingFrame;
int endingFrame;
int type;
static final int SINGLE_SUPPORT_LEFT = 0;
static final int SINGLE_SUPPORT_RIGHT = 1;
static final int DOUBLE_SUPPORT = 2;
GaitPhase(int startingFrame, int endingFrame, int type){
this.startingFrame = startingFrame;
this.endingFrame = endingFrame;
this.type = type;
}
color phaseColor(){
color result = color(255);
switch(type) {
case SINGLE_SUPPORT_RIGHT:
result = color(255,100,100);
break;
case SINGLE_SUPPORT_LEFT:
result = color(100,255,100);
break;
case DOUBLE_SUPPORT:
result = color(100,100,255);
break;
}
return result;
}
}
Jump to Line
Something went wrong with that request. Please try again.