From 610cc44f116bad41146bf04eafede18b292b8655 Mon Sep 17 00:00:00 2001 From: "sigonasr2, Sig, Sigo" Date: Tue, 19 Oct 2021 07:29:36 +0000 Subject: [PATCH] Color identifier on draw note function. Co-authored-by: sigonasr2 --- LLSIG/src/main/java/LLSIG/Canvas.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/LLSIG/src/main/java/LLSIG/Canvas.java b/LLSIG/src/main/java/LLSIG/Canvas.java index e803a42..57c9f72 100644 --- a/LLSIG/src/main/java/LLSIG/Canvas.java +++ b/LLSIG/src/main/java/LLSIG/Canvas.java @@ -93,9 +93,9 @@ public class Canvas extends JPanel implements AudioSpectrumListener{ g.setColor(HOLD_NOTE_COLOR); g.fillRect(NOTE_X,START_Y+NOTE_SIZE/2,NOTE_SIZE,END_Y-START_Y); g.setColor(prevCol); - drawNote(g,NOTE_X,END_Y,1,1,n.multiple2); + drawNote(g,NOTE_X,END_Y,1,1,n.multiple2,n.multiple2_col); } - drawNote(g,NOTE_X,START_Y,1,1,n.multiple); + drawNote(g,NOTE_X,START_Y,1,1,n.multiple,n.multiple_col); } } } else { @@ -182,11 +182,11 @@ public class Canvas extends JPanel implements AudioSpectrumListener{ Point CORNER2 = new Point((int)(MIDDLE_X-Math.cos(Math.toRadians(22.5*i))*(CLAMPED_PLAYTIME_RATIO*NOTE_DISTANCE)-START_NOTE_SIZE/2),(int)(MIDDLE_Y+Math.sin(Math.toRadians(22.5*i))*(CLAMPED_PLAYTIME_RATIO*NOTE_DISTANCE)-START_NOTE_SIZE/2)); g.fillPolygon(new int[]{CORNER1.x,CORNER1.x+END_NOTE_SIZE,CORNER2.x+START_NOTE_SIZE,CORNER2.x}, new int[]{CORNER1.y+END_NOTE_SIZE/2,CORNER1.y+END_NOTE_SIZE/2,CORNER2.y+START_NOTE_SIZE/2,CORNER2.y+START_NOTE_SIZE/2}, 4); g.setColor(prevCol); - drawNote(g,MIDDLE_X-Math.cos(Math.toRadians(22.5*i))*(CLAMPED_PLAYTIME_END_RATIO*NOTE_DISTANCE)-END_NOTE_SIZE/2,MIDDLE_Y+Math.sin(Math.toRadians(22.5*i))*(CLAMPED_PLAYTIME_END_RATIO*NOTE_DISTANCE)-END_NOTE_SIZE/2,Math.min(Math.max(PLAYTIME_END_RATIO/2+0.5,0.5),1),Math.min(Math.max(PLAYTIME_END_RATIO/2+0.5,0.5),1),n.multiple2); + drawNote(g,MIDDLE_X-Math.cos(Math.toRadians(22.5*i))*(CLAMPED_PLAYTIME_END_RATIO*NOTE_DISTANCE)-END_NOTE_SIZE/2,MIDDLE_Y+Math.sin(Math.toRadians(22.5*i))*(CLAMPED_PLAYTIME_END_RATIO*NOTE_DISTANCE)-END_NOTE_SIZE/2,Math.min(Math.max(PLAYTIME_END_RATIO/2+0.5,0.5),1),Math.min(Math.max(PLAYTIME_END_RATIO/2+0.5,0.5),1),n.multiple2,n.multiple2_col); } } if (n.active&&n.getStartFrame()-LLSIG.game.musicPlayer.getPlayPosition()