Revision 7dfaccb3
Added by Leszek Koltunski 9 months ago
src/main/java/org/distorted/objectlib/helpers/FactorySticker.java | ||
---|---|---|
138 | 138 |
aX /= aLen; |
139 | 139 |
aY /= aLen; |
140 | 140 |
|
141 |
// draw a little more - stroke*(aX,aY) more - so |
|
141 |
// draw a little more - 0.5f*stroke*(aX,aY) more - so
|
|
142 | 142 |
// that we draw over the rounded corners (Kilominx!) |
143 |
canvas.drawLine(left+pX,bottom-pY,left+cX-stroke*aX,bottom-cY+stroke*aY,paint); |
|
143 |
float corr = stroke*0.5f; |
|
144 |
canvas.drawLine(left+pX,bottom-pY,left+cX-corr*aX,bottom-cY+corr*aY,paint); |
|
144 | 145 |
} |
145 | 146 |
else |
146 | 147 |
{ |
Also available in: Unified diff
progress with TwistyBandagedMegaminx.