simplified line width
This commit is contained in:
parent
4cc55e32e7
commit
93dd045f27
1 changed files with 3 additions and 5 deletions
|
@ -28,11 +28,9 @@ drawRect buf color dt rect@G.GeglRectangle{..} =
|
|||
let col = colorize pc color
|
||||
in
|
||||
G.Pixel px py col
|
||||
Line width ->
|
||||
if (px >= rectangleX && px <= (rectangleX + width) ||
|
||||
px <= (rectangleX + rectangleWidth) && px >= (rectangleX + rectangleWidth - width)) &&
|
||||
(py >= rectangleY && py <= (rectangleY + width) ||
|
||||
py <= (rectangleY + rectangleHeight) && py >= (rectangleY + rectangleHeight - width))
|
||||
Line size ->
|
||||
if not ((px >= (rectangleX + size) && px < (rectangleX + rectangleWidth - size)) &&
|
||||
(py >= (rectangleY + size) && py < (rectangleY + rectangleHeight - size)))
|
||||
then
|
||||
let col = colorize pc color
|
||||
in G.Pixel px py col
|
||||
|
|
Loading…
Reference in a new issue