Weird bug in processing or linux?

I’m using that trick, but I actually have to use

texture.stroke(c(color(0,0,255)));

to produce red. Your code tests for LITTLE_ENDIAN and then reverses, if I am reading it correctly.