Display different when exported to Javascript
in
Processing with Other Languages
•
11 months ago
I have a very simple program that draws a bunch of lines and grabs part of the screen into a newly created image (around 200x200 pixels).
When exported to Javascript it works the same except the image seems to be of reduced quality.
I've tried the 'crisp' directive to see if that has any effect but it doesn't. No other drawing primitives are used except line (along with stroke() and strokeWeight() ) .
The image is created thus:
minipatt=createImage(16 * CELLSIZE, 16 * CELLSIZE, RGB);
and contents obtained with:
minipatt=get(0, 0, 16 * CELLSIZE, 16 * CELLSIZE);
Any suggestions please?
When exported to Javascript it works the same except the image seems to be of reduced quality.
I've tried the 'crisp' directive to see if that has any effect but it doesn't. No other drawing primitives are used except line (along with stroke() and strokeWeight() ) .
The image is created thus:
minipatt=createImage(16 * CELLSIZE, 16 * CELLSIZE, RGB);
and contents obtained with:
minipatt=get(0, 0, 16 * CELLSIZE, 16 * CELLSIZE);
Any suggestions please?
1