fix hue() due to differences in Android API (issue #1257)

This commit is contained in:
benfry
2012-10-19 20:41:51 +00:00
parent 3dbd117d75
commit c933e572fb
2 changed files with 5 additions and 4 deletions
@@ -5120,7 +5120,7 @@ public class PGraphics extends PImage implements PConstants {
what & 0xff, cacheHsbValue);
cacheHsbKey = what;
}
return cacheHsbValue[0] * colorModeX;
return (cacheHsbValue[0] / 360f) * colorModeX;
}
+4 -3
View File
@@ -1,10 +1,11 @@
0212 android
X key value is not set in android mode
X http://code.google.com/p/processing/issues/detail?id=1254
X hue() in HSB mode returns out of range values
X hue method on Android may just be different
X http://code.google.com/p/processing/issues/detail?id=1257
_ hue() in HSB mode returns out of range values
_ http://code.google.com/p/processing/issues/detail?id=1257
_ emulator not starting up on OS X?
motion/touch events
_ registerMethod("motionEvent") and "mouseEvent" not implemented