Remove print output on magnitude.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
59d6572775
commit
5335a4a4e8
@ -29,7 +29,7 @@ public class SpectrographBar {
|
|||||||
}
|
}
|
||||||
public void draw(Graphics g,int x,int w,int h) {
|
public void draw(Graphics g,int x,int w,int h) {
|
||||||
if (current_magnitude!=NO_UPDATE) {
|
if (current_magnitude!=NO_UPDATE) {
|
||||||
System.out.println(current_magnitude);
|
//System.out.println(current_magnitude);
|
||||||
int colVal = (int)(((60d-Math.abs(current_magnitude))/60d)*255);
|
int colVal = (int)(((60d-Math.abs(current_magnitude))/60d)*255);
|
||||||
g.setColor(new Color(colVal,colVal,colVal,colVal));
|
g.setColor(new Color(colVal,colVal,colVal,colVal));
|
||||||
g.fillRect(x,0,w,h);
|
g.fillRect(x,0,w,h);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user