Παρασκευή 20 Ιουλίου 2012

Fade an image

After having searched through I found a lot of complicated solutions, with timings and color filters etc, and some clues too. Here is a simple solution to fade out an image into darkness:

BufferedImage imi=new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
imi.getGraphics().drawImage(bi, 0, 0, w, h, null);
Graphics2D g2=(Graphics2D)imi.getGraphics();
g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, (float)0.2));
g2.setColor(Color.black);
g2.fillRect(0, 0, w, h);

That is you first draw the image itself then you draw a black on top with a given (0.2) transparency,
where bi is assumed to hold your image of interest.

For a complete and gradual fade out you use the following in your paint method:

public void paint(Graphics g) {
if(imk>times) ;
else {
if(imk==0) { g.drawImage(im, 0, 0, this); imk++; }
else {
Graphics2D g2=(Graphics2D)g;
g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, (float)rate));
g2.setColor(Color.black);
g2.fillRect(0, 0, w, h);
imk++;
}
}
}

where im is the image of interest, and times is the number of times to take to gradually withdraw.

It can be set up as

int imk=0, times=1;
double rate=0.1, limit=0.009;

times=(int)(Math.log(limit)/Math.log(1-rate));

Παρασκευή 13 Ιουλίου 2012

Clapton

I knew I had the right feeling for Eric Clapton

Once he turned into schic

showing up in costumes and ties and papiyon and bow ties

he became one of the same

at least the people in smooth jazz are already in it
they don't show any pretensions of protesting against something or anything

pre-packaged-food

it's the pre-packaged food that makes us subservient

not the big-time regimes and dictators

that's for them to tout and shout

IQ

the use of IQ
[to characterize people of double digits]
is a stupidness
of the same nature
but a lesser degree

the use of IQ
is a stupidness 

Τρίτη 10 Ιουλίου 2012

framing the self

replacing something with nothing is impossible
in the realm of the universe
since nothing lies outside the universe
thus a faux concept

aka conceptual writing

all in the name of stunt and provocation

framing the self and putting it front and center

evaporated milk



καλύτερα να φαντάζεσαι τον εαυτό σου με συντεταγμένες

-

- και ποιό είναι το κείμενο; ρώτησε ο φτωχός εκδότης
- εγώ είμαι το κείμενο

-

you need to squeeze someone
to get some juice
otherwise you get air, nothing
or evaporated milk

Vanessa Place

a massiv escale impersonator or a person clinging ot the dghe of insanity

pelple reveling in their homosexuality whotout ever going full scale on it