We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexSuggestions & BugsWebsite,  Documentation,  Book Bugs › createImage example error
Page Index Toggle Pages: 1
createImage example error (Read 689 times)
createImage example error
Feb 5th, 2008, 5:22pm
 
the second example on http://processing.org/reference/createImage_.html
is not correct (anymore). The image should be ARGB, as in:
Code:
PImage img = createImage(66, 66, ARGB);

for(int i=0; i < img.pixels.length; i++) {
img.pixels[i] = color(0, 90, 102, i%img.width * 2);
}

image(img, 17, 17);
image(img, 34, 34);
Re: createImage example error
Reply #1 - Mar 27th, 2008, 6:25am
 
Thank you. Fixed. Will be updated for the next release.
Page Index Toggle Pages: 1