Re: [racket-users] pict polygons

2019-12-17 Thread Spencer Florence
2htdp/image works with pict directly (they are pict-convertible?, and all pict functions accept those). If that does work for whatever reason, it shouldnt be terrible to write that function using ‘dc’ and ‘dc-path%’, and it would make a great PR to ‘pict’! —spencer On Tue, Dec 17, 2019 at 8:15

Re: [racket-users] pict polygons

2019-12-17 Thread Robby Findler
2htdp/image images should work where Picts work (ie they are pict convertible). Robby On Tue, Dec 17, 2019 at 8:15 AM Hendrik Boom wrote: > I've been looking through pict documentation again, and failed to find > a way to draw arbitrary polygons. > > (at the moment I just want a triangle, but

Re: [racket-users] pict polygons SOLVED

2019-12-17 Thread Hendrik Boom
On Tue, Dec 17, 2019 at 09:14:52AM -0500, Hendrik Boom wrote: > I've been looking through pict documentation again, and failed to find > a way to draw arbitrary polygons. Looks like i found it. It's dc-path% found in racket/draw. It connets to pict using the dc function: (dc draw w h [a d])

[racket-users] pict polygons

2019-12-17 Thread Hendrik Boom
I've been looking through pict documentation again, and failed to find a way to draw arbitrary polygons. (at the moment I just want a triangle, but I couldn't even find that) There are triangles in the image.rkt from 2htdp/image, but that seems to use different data types from pict. Given