Simple img.get() compatability with JS environment
in
Processing with Other Languages
•
8 months ago
I just today started using the JS environment to engage feedback from the community.
the project that i'm working on converted just fine except for one small image related problem.
- PImage img;
- public void setup()
- {
- size(300,300,P2D);
- img = loadImage("bacteria.jpg");
- }
- public void draw()
- {
- background(img.get(0,0,300,300));
- }
In this scenario the code works just fine in the pde/offline java environment, but displays nothing in the JS.
and its simply because of the img.get() function being unresponsive.
also check out my current project.
Of course its a work in progress with many features to come.
1