5/4 17:28:20 <TonyC:#imager> which is how box X and Win32 GDI act for filled shapes

5/4 17:28:21 <Leolo:#imager> brane hurt time

5/4 17:28:29 <TonyC:#imager> but box(filled=>1...) doesn't

5/4 17:28:47 <Leolo:#imager> i figure both inclusion and exclusion are OK, as long as it's consistant and DOCUMENTED

5/4 17:28:47 <TonyC:#imager> we've debated this before :)

5/4 17:28:53 <Addi:#Imager> TonyC: Right, but X also says that box() behaves just as if you drew it with lines()

5/4 17:29:07 <Addi:#Imager> So box() says how line() should work.

5/4 17:29:14 <TonyC:#imager> for a filled or unfilled rectangle?

5/4 17:29:17 <Addi:#Imager> Well, discussed, we never argue here.

5/4 17:29:43 <Addi:#Imager> I think the outline for filled/unfilled box in X is the same.

5/4 17:29:57 <Addi:#Imager> Lets make sure.

5/4 17:30:45 <Addi:#Imager> Yup, should be the same as a polyline of ( [x,y] [x+width,y] [x+width,y+height] [x,y+height] [x,y] )

5/4 17:32:09 <Addi:#Imager> Wow, this is amazing, how the heck can this hold?

5/4 17:32:27 <Addi:#Imager> Does the polyline method in X know what is inside and what is outside of the polygon?

5/4 17:33:33 <TonyC:#imager> from "Xlib Programming Manual", p 155: "Suprisingly, the filling and drawing versions of the rectangle functions do not draw the same outline if given the same arguments. The routine that fills a rectangle draws an outline one pixel shorter in width and height than the routine that just draws the outline, as shown in Figure 6-2."

5/4 17:33:57 <Addi:#Imager> ahhh, hah.

5/4 17:34:11 <TonyC:#imager> I've quoted that before :)

5/4 17:34:28 <Leolo:#imager> so filled is smaller?

5/4 17:34:30 <Leolo:#imager> wow

5/4 17:34:43 <Addi:#Imager> Damn, I think we're just replaying old conversation, can you just tell me right away how it ends?

5/4 17:34:43 <Addi:#Imager> :P

5/4 17:34:50 <Addi:#Imager> Leolo: nasty!

5/4 17:34:51 <TonyC:#imager> we didn't resolve it :)

5/4 17:35:05 <Addi:#Imager> Yeah, because it's just a friggen nightmare.

5/4 17:35:12 <Addi:#Imager> But I don't think we can put it of anymore.

5/4 17:35:32 <Addi:#Imager> TonyC: You have that in .ps?

5/4 17:35:50 <TonyC:#imager> consider it in terms of area for the filled version - it produces a (right-left)*(bottom-top) area rectangle

5/4 17:35:53 <TonyC:#imager> no, hardcopy

5/4 17:36:08 <TonyC:#imager> it's from 1993, but I doubt it has changed since then

5/4 17:36:08 <Addi:#Imager> It comes with the X source iirc.

5/4 17:37:12 <Addi:#Imager> ok, so this means that box that is not filled should draw out to (100,100)

5/4 17:37:25 <Addi:#Imager> while a filled box would only go out to 99,99

5/4 17:37:30 <TonyC:#imager> yes

5/4 17:37:51 <Addi:#Imager> I'm not really sure which is better.

5/4 17:37:58 <TonyC:#imager> when working with fills, consider the origin to be at the top-left of the top-left pixel

5/4 17:38:14 <TonyC:#imager> when working with lines, consider the origin to be at the centre of the top-left pixel

5/4 17:38:16 <Addi:#Imager> TonyC: Exactly, that's how I hoped to do everything.