Draw question
in
Contributed Library Questions
•
2 years ago
Hello everybody! I have a new question to ask. I want to insert a draw into a GPanel. My draw code s that:
pnl = new GPanel(this, "Panel", -650,0,300,72);
void renderWave1() {
noStroke();
for (int x = 0; x < linesFase.length; x++) {
fill(255,0,0);
rect(x*xspacionTota,(height-20)-recordsFase[x].consumo/2,0.2,recordsFase[x].consumo/2);
}
fill(255,0,0);
rect(x*xspacionTota,(height-20)-recordsFase[x].consumo/2,0.2,recordsFase[x].consumo/2);
}
}
If anybody could help me, I'll be pleased. Thanksin advance
1