me1150
2019-7-8 17:25:38

@me1150 has joined the channel


mccoybecker
2019-7-8 17:25:38

@mccoybecker has joined the channel


stephen
2019-7-8 17:25:45

@stephen has joined the channel


markus.pfeiffer
2019-7-8 17:25:46

@markus.pfeiffer has joined the channel


dyllongagnier
2019-7-8 17:25:53

@dyllongagnier has joined the channel


guy.w
2019-7-8 17:25:55

@guy.w has joined the channel


kl13
2019-7-8 17:25:58

@kl13 has joined the channel


prithamm
2019-7-8 17:26:02

@prithamm has joined the channel


slade
2019-7-8 17:26:03

@slade has joined the channel


shaobo
2019-7-8 17:26:03

@shaobo has joined the channel


tchajed
2019-7-8 17:26:05

@tchajed has joined the channel


qbradley
2019-7-8 17:26:07

@qbradley has joined the channel


willbanders
2019-7-8 17:26:07

@willbanders has joined the channel


kristianalnaes
2019-7-8 17:26:07

@kristianalnaes has joined the channel


beyer.andrew
2019-7-8 17:26:18

@beyer.andrew has joined the channel


jordan
2019-7-8 17:26:29

@jordan has joined the channel


jacob.wachala
2019-7-8 17:26:31

@jacob.wachala has joined the channel


ryanxh
2019-7-8 17:26:38

@ryanxh has joined the channel


jacob.wachala818
2019-7-8 17:26:50

@jacob.wachala818 has joined the channel


keenencates
2019-7-8 17:26:58

@keenencates has joined the channel


ashton.wiersdorf
2019-7-8 17:27:04

@ashton.wiersdorf has joined the channel


aaronstgeorge
2019-7-8 17:27:41

@aaronstgeorge has joined the channel


pierce.darragh
2019-7-8 17:27:52

@pierce.darragh has joined the channel


wardj1
2019-7-8 17:28:11

@wardj1 has joined the channel


geb_a
2019-7-8 17:28:11

@geb_a has joined the channel


markus.pfeiffer
2019-7-8 17:29:02

Hi


kristianalnaes
2019-7-8 17:29:23

Hey guys, could yoo post the link to the workshop channel?


alexknauth
2019-7-8 17:29:40

Is #racket-school the correct one? [Edit: NO]


ryanxh
2019-7-8 17:29:55

jeapostrophe
2019-7-8 17:29:57

bmitchell33
2019-7-8 17:30:05

@bmitchell33 has joined the channel


mitron6
2019-7-8 17:31:29

@mitron6 has joined the channel


blerner
2019-7-8 19:35:53

Is there a way, using the pict library, to do something like (with-clip-region <something orother> (lambda() (draw a pict))), or (intersect-clip-region <something> (lambda() (draw a pict)))? In particular, I’m trying to clip to a polygonal (but not-rectangle) region


leif
2019-7-8 20:44:16

@blerner Like a mask?


blerner
2019-7-8 20:44:34

basically, yes.


blerner
2019-7-8 20:45:08

the ideal version would basically be, “Draw pict1. Draw pict2. Treat pict1 as an alpha channel, and mask off all the parts of pict2 based on pict1”


blerner
2019-7-8 20:45:13

but I don’t know how to achieve that.


blerner
2019-7-8 20:45:42

so I’ll settle for, “Create some voodoo that lets me draw a polygonal, binary path, and mask off all parts of pict2 that are outside that path”


leif
2019-7-8 20:46:02

So, its easy enough to do with the racket/draw lib, using pict->bitmap to convert to it, and bitmap to convert back.


leif
2019-7-8 20:46:04

Like this:



blerner
2019-7-8 20:46:57

lemme take a look



leif
2019-7-8 20:47:24

It takes a mask as an argument.


blerner
2019-7-8 20:50:00

lemme try it a bit


leif
2019-7-8 20:50:08

Okay


blerner
2019-7-8 21:04:09

got it, thanks!


soegaard2
2019-7-8 21:19:31

@blerner FWIW MetaPict provides `clipped, which draws the part of a pict that’s inside a closed curve.


soegaard2
2019-7-8 21:19:52

It is used like: (clipped p c) where p is a pict and c is a curve.


skanaley
2019-7-8 23:09:49

@skanaley has joined the channel