Permalink
Browse files

fixed rgb index

  • Loading branch information...
1 parent 2923c45 commit 65437c9b073b5080dac014ea0873a1043cad983c Memo Akten committed Nov 14, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ofxKinect/ofxKinect.cpp
@@ -214,7 +214,7 @@ float ofxKinect::getDistanceAt(ofPoint p) {
//------------------------------------
ofColor ofxKinect::getColorAt(int x, int y) {
- int index = y * width + x;
+ int index = (y * width + x) * 3;
ofColor c;
c.r = rgbPixels[index++];
c.g = rgbPixels[index++];

0 comments on commit 65437c9

Please sign in to comment.