// vermelho / branco
private void graphcsBackground(Graphics g){
//g.setColor(this.getCorBackEnd());
g.fillRect(0, 0, width, height);
int v = 0;
int r = 0;
int b = 0;
for (int i = 0; i < this.getHeight(); i++) {
g.setColor(255,r+(i),b +(i));
g.drawLine(0,i,getWidth(),i);
}
}
// preto / branco
private void graphcsBackground(Graphics g){
//g.setColor(this.getCorBackEnd());
g.fillRect(0, 0, width, height);
int v = 0;
int r = 0;
int b = 0;
for (int i = 0; i < this.getHeight(); i++) {
g.setColor(r+(i),r+(i),b +(i));
g.drawLine(0,i,getWidth(),i);
}
}
terça-feira, 26 de fevereiro de 2008
Assinar:
Postar comentários (Atom)
Nenhum comentário:
Postar um comentário