Warning: session_start(): open(/var/lib/php/sessions/sess_0ga8uak13q82ao3h38egmktcds, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
static int w = 32, h = 16, ww = 400, hh = 200;
static DirectSurface ds;
static BufferedImage img;
sclass DirectSurface extends Surface {
BufferedImage img;
*() {}
*(BufferedImage *img) {}
public void render(int w, int h, Graphics2D g) {
g.drawImage(img, 0, 0, null);
}
public Dimension getPreferredSize() {
ret new Dimension(img.getWidth(), img.getHeight());
}
}
p-substance {
img = newBufferedImage(ww, hh);
showPackedFrame(ds = new DirectSurface(img));
thread {
BufferedImage src = screenshot();
final int srcw = src.getWidth(), srch = src.getHeight();
repeat {
for (int y = 0; y < hh; y += h)
for (int x = 0; x < ww; x += w) {
int srcX = random(srcw-w), srcY = random(srch-h);
copyImagePart(src, srcX, srcY, img, x, y, w, h);
ds.paintImmediately(x, y, w, h);
sleep(50);
}
}
}
}