Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

[SOLVED] Problem setting color

$
0
0

I tried

ofImage img;
img.allocate(nbX, nbY, OF_IMAGE_COLOR);
for (int y = 0; y < nbY; y++) {
    for (int x = 0; x < nbX; x++) {
        img.setColor(x, y, image.getColor(x, y));
    }
}
img.resize(1024, 768);
img.draw(0, 0);

to see if i understand how ofImage works. And that seems ok.
Still have the issue i don't understand.
Maybe some other part in the code.

here you can see the code

https://github.com/martialgallorini/springBounce/tree/silhouette-install

thanks a lot


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>