Skip to content

Commit

Permalink
Update wid.js
Browse files Browse the repository at this point in the history
  • Loading branch information
miseler authored Jun 3, 2024
1 parent aa84b06 commit 147b906
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/widdevst/wid.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
let right = E.clip(b-50, 0, 25);
let bottom = E.clip(b-25, 0, 25);
let left = E.clip(b, 0, 25);
if(top>0) g.drawRect(x+21,y+0,x+1+20*top/25,y+1);
//if(top>0) g.drawRect(x+21-20*top/25,y+0,x+21,y+1);
if(right>0) g.drawRect(x+20,y+22,x+21,y+22*right/25);
//if(top>0) g.drawRect(x+21,y+0,x+1+20*top/25,y+1);
if(top>0) g.drawRect(x+21-20*top/25,y+0,x+21,y+1);
if(right>0) g.drawRect(x+20,y+22-22*right/25,x+21,y+22);
if(bottom>0) g.drawRect(x+1,y+21,x+1+20*bottom/25,y+22);
if(left>0) g.drawRect(x+1,y+0,x+2,y+22*left/25);
}
Expand Down

0 comments on commit 147b906

Please sign in to comment.