You may try out this workaround below:
import java.nio.ByteOrder;
static final ByteOrder ENDIANNESS = ByteOrder.nativeOrder();
{
println(ENDIANNESS);
}
static final color c(final color c) {
return ENDIANNESS == ByteOrder.LITTLE_ENDIAN? c : Integer.reverseBytes(c);
}
Just replace statements like texture.stroke(255, 0, 0);
w/ this model:
texture.stroke(c(color(255, 0, 0)));
Another example: stroke(255, 200);
- - > stroke(c(color(255, 200)));
If your issue is about endianness the trick above should hopefully work.