Skip to content

Commit

Permalink
Updated the RGB to HSL code to calucate correctly
Browse files Browse the repository at this point in the history
git-svn-id: https://android-motion-detection.googlecode.com/svn/trunk@10 996b93ed-3e4d-4b21-1044-74bd19560d1d
  • Loading branch information
[email protected] committed Aug 28, 2011
1 parent 28952dc commit c334537
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public static float[] getARGB(int pixel) {
}

//Get HSL from RGB
//H is 0-360 (degrees)
//H and S are 0-100 (percent)
public static float[] convertToHSL(int r, int g, int b) {
float red = r / 255;
float green = g / 255;
Expand Down

0 comments on commit c334537

Please sign in to comment.