This commit is contained in:
Manindra Moharana
2014-11-14 14:37:19 -07:00
5 changed files with 28 additions and 9 deletions

View File

@@ -154,7 +154,7 @@
</condition>
<!-- Set the version of Java that must be present to build. -->
<property name="jdk.update.macosx" value="67" />
<property name="jdk.update.macosx" value="72" />
<property name="jdk.path.macosx" value="/Library/Java/JavaVirtualMachines/jdk1.7.0_${jdk.update.macosx}.jdk" />
<available file="${jdk.path.macosx}" property="macosx_jdk_found" />

View File

@@ -7680,10 +7680,10 @@ public class PGraphics extends PImage implements PConstants {
float g2 = (c2 >> 8) & 0xff;
float b2 = c2 & 0xff;
return (((int) (a1 + (a2-a1)*amt) << 24) |
((int) (r1 + (r2-r1)*amt) << 16) |
((int) (g1 + (g2-g1)*amt) << 8) |
((int) (b1 + (b2-b1)*amt)));
return ((PApplet.round(a1 + (a2-a1)*amt) << 24) |
(PApplet.round(r1 + (r2-r1)*amt) << 16) |
(PApplet.round(g1 + (g2-g1)*amt) << 8) |
(PApplet.round(b1 + (b2-b1)*amt)));
} else if (mode == HSB) {
if (lerpColorHSB1 == null) {
@@ -7693,7 +7693,7 @@ public class PGraphics extends PImage implements PConstants {
float a1 = (c1 >> 24) & 0xff;
float a2 = (c2 >> 24) & 0xff;
int alfa = ((int) (a1 + (a2-a1)*amt)) << 24;
int alfa = (PApplet.round(a1 + (a2-a1)*amt)) << 24;
Color.RGBtoHSB((c1 >> 16) & 0xff, (c1 >> 8) & 0xff, c1 & 0xff,
lerpColorHSB1);

View File

@@ -1,5 +1,16 @@
0232 core (3.0a5)
_ simple to detect CMYK JPEG images?
_ https://community.oracle.com/thread/1272045?start=0&tstart=0
_ int colorSpace = img.getColorModel().getColorSpace().getType();
int colorSpace = img.getColorModel().getColorSpace().getType();
if(colorSpace == ColorSpace.TYPE_CMYK) {
BufferedImage dst = new BufferedImage(img.getWidth(),
img.getHeight(),BufferedImage.TYPE_3BYTE_BGR);
ColorConvertOp op = new ColorConvertOp(null);
op.filter(img, dst);
img = dst;
}
pulls
X Fix check in loadShader()

View File

@@ -310,8 +310,8 @@ public class Server implements Runnable {
public void write(int data) { // will also cover char
int index = 0;
while (index < clientCount) {
clients[index].write(data);
if (clients[index].active()) {
clients[index].write(data);
index++;
} else {
removeIndex(index);
@@ -323,8 +323,8 @@ public class Server implements Runnable {
public void write(byte data[]) {
int index = 0;
while (index < clientCount) {
clients[index].write(data);
if (clients[index].active()) {
clients[index].write(data);
index++;
} else {
removeIndex(index);
@@ -336,8 +336,8 @@ public class Server implements Runnable {
public void write(String data) {
int index = 0;
while (index < clientCount) {
clients[index].write(data);
if (clients[index].active()) {
clients[index].write(data);
index++;
} else {
removeIndex(index);

View File

@@ -18,6 +18,12 @@ X improve contrib manager localization
X https://github.com/processing/processing/pull/2870
X Fix infinite recursion in sound library
X https://github.com/processing/processing/pull/2897
X NullPointerException message when Server writes to a disconnected client
X https://github.com/processing/processing/issues/2577
X https://github.com/processing/processing/pull/2578
X Prevent lerpColor from always rounding down
X https://github.com/processing/processing/issues/2812
X https://github.com/processing/processing/pull/2813
_ Add support for localizing contributions
_ https://github.com/processing/processing/pull/2833
_ Fix renaming from RGB to Rgb.java and others
@@ -72,6 +78,8 @@ _ http://stackoverflow.com/questions/4933677/detecting-windows-ie-proxy-settin
_ http://www.java2s.com/Code/Java/Network-Protocol/DetectProxySettingsforInternetConnection.htm
_ problems with non-US keyboards and some shortcuts
_ https://github.com/processing/processing/issues/2199
_ improve start time by populating sketchbook/libraries on threads
_ https://github.com/processing/processing/issues/2945
medium