barelief / freeTransform-processing

FreeTransform - library for Processing
MIT License
2 stars 1 forks source link

create arraylist of quads #10

Closed barelief closed 8 years ago

barelief commented 8 years ago

Needed for transforming many textures in one sketch

barelief commented 8 years ago
FreeTransform quads;
PGraphics offscreenTexture;
PImage img;
(...)

void setup()
{
  quads = new FreeTransform();
  (...)
}

void draw()
{
  (...)
  offscreenTexture.beginDraw();
  offscreenTexture.background(255);
  offscreenTexture.ellipse(x, y, 10, 10);
  offscreenTexture.endDraw();
  quads[0].render(offscreenTexture);
  quads[1].render(img);
  (...)
}