Ajuda sobre param

tenho um programa que achei na net e descompilei com o DJ, esse applet desenha um triângulo de posição e tamanho aleatório, qr dizer, ele se mexe na tela. Quero configurar cor R G e B via param, direto na página HTML, tentei, mas não dá, pra quem está interessado em me ajudar, aí vai o código:

import java.applet.Applet;
import java.awt.*;

public class tri extends Applet
implements Runnable
{

public void paint(Graphics g)
{
g.setColor(getBackground());
g.fillRect(0, 0, ax, ay);
g.setColor(new Color(51, 153, 255)); quero trocar essas cores
g.drawLine(p1x, p1y, p2x, p2y);
g.drawLine(p2x, p2y, p3x, p3y);
g.drawLine(p3x, p3y, p1x, p1y);
}

public int getPint(String parametro)
{
String parametroLido = getParameter(parametro);
int retorno = Integer.parseInt(parametroLido);
return retorno;
}

public tri()
{
}

public void update(Graphics g)
{
paint(offgraphics);
g.drawImage(offimg, 0, 0, this);
}

public void start()
{
}

public void run()
{
do
{
try
{
Thread.currentThread();
Thread.sleep(tempo);
}
catch(InterruptedException interruptedexception) { }
if(p1x >= ax)
r1x = -1;
if(p2x >= ax)
r2x = -1;
if(p3x >= ax)
r3x = -1;
if(p1x <= 0)
r1x = 1;
if(p2x <= 0)
r2x = 1;
if(p3x <= 0)
r3x = 1;
if(p1y >= ay)
r1y = -1;
if(p2y >= ay)
r2y = -1;
if(p3y >= ay)
r3y = -1;
if(p1y <= 0)
r1y = 1;
if(p2y <= 0)
r2y = 1;
if(p3y <= 0)
r3y = 1;
p1x = p1x + r1x;
p2x = p2x + r2x;
p3x = p3x + r3x;
p1y = p1y + r1y;
p2y = p2y + r2y;
p3y = p3y + r3y;
repaint();
} while(true);
}

public void init()
{
texto = getParameter(“texto”);
tempo = getPint(“tempo”);
r1x = -1;
r2x = 2;
r2x = 1;
r1y = 1;
r2y = -1;
r3y = -2;
p1x = p2y = p3x = p3y = 100;
p1y = p2x = 0;
ax = size().width;
ay = size().height;
setBackground(Color.black);
setForeground(new Color(0, 255, 0));
offimg = createImage(ax, ay);
offgraphics = offimg.getGraphics();
t = new Thread(this);
t.start();
}

Thread t;
Image offimg;
Graphics offgraphics;
int p1x;
int p2x;
int p3x;
int p1y;
int p2y;
int p3y;
int r1x;
int r2x;
int r3x;
int r1y;
int r2y;
int r3y;
int ax;
int ay;
int tempo;
String texto;
}

agradeço desde já
abraços

oi dave, porque nao da?

usa o param na sua tag applet ou object, ai do init voce pega eles

que pau que deu?