Feature: support stroke / line thickness

瀏覽次數:17 次
跳到第一則未讀訊息

ssadl...@gmail.com

未讀,
2019年3月26日 晚上7:26:282019/3/26
收件者:Haskell Gloss
Currently to draw a rectangle with a fixed size border is possible by drawing 2 rectangles with the same position, one smaller than the other.

But I couldn't see a way to draw a polygon with a fixed size border, and the library doesn't seem to support line thickness at all.

My use case would be solved with either of the following additional constructors on Picture:

StrokeWidth :: Double -> Picture -> Picture

(setting GL.lineWidth), or:

WrapPicture :: (IO a -> IO a) -> Picture -> Picture

(allowing a custom IO action to wrap the rendering of a picture).

Thanks!
回覆所有人
回覆作者
轉寄
0 則新訊息