Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed rgb index

  • Loading branch information...
commit 65437c9b073b5080dac014ea0873a1043cad983c 1 parent 2923c45
Memo Akten authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/ofxKinect/ofxKinect.cpp
View
2  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.
Something went wrong with that request. Please try again.