Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use ternary operator
  • Loading branch information
Abhiram98 committed Aug 4, 2024
commit cbdb07f18ce12b8fb63171ae68e9dc21be15875c
Original file line number Diff line number Diff line change
Expand Up @@ -360,12 +360,7 @@ public void paint(Graphics2D g, StateRenderer2D renderer) {
graphicsContext.translate(20 + 25, 100 + 25);
graphicsContext.rotate(Math.PI / 2 + Math.PI / 4 * (2 * i + 1));
graphicsContext.translate(-7, -25 - 2);
if (mainlookAngle.get() == i) {
graphicsContext.setColor(shapeHighColor);
}
else {
graphicsContext.setColor(shapeColor);
}
graphicsContext.setColor(mainlookAngle.get() == i ? shapeHighColor : shapeColor);
graphicsContext.fill(shapeArrow);
graphicsContext.setColor(Color.black);
graphicsContext.draw(shapeArrow);
Expand Down