Skip to content

Commit

Permalink
Fix highlight stroke size
Browse files Browse the repository at this point in the history
  • Loading branch information
Mars committed Jan 23, 2023
1 parent 9977046 commit 9379fc6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/me/mars/Segment.java
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ public void draw(boolean rainbow) {

public void drawHighlight() {
Draw.z(Layer.overlayUI+0.1f);
Lines.stroke(1f);
// Adding 3 pi by dice roll (or to sync it)
float alpha = Mathf.absin(Time.time/7.5f + 3*Mathf.PI, 1f, 0.8f);
Draw.color(Bridges.fixedColor ? Pal.accent : this.endSegment.color, alpha);
Expand Down

0 comments on commit 9379fc6

Please sign in to comment.