Re: [9fans] radar for plan 9, and two draw funnies.

2009-12-12 Thread erik quanstrom
> On Fri, Dec 11, 2009 at 08:51:21PM -0500, erik quanstrom wrote: > > 1. for some reason the hw.gif (interstates) are > > in cyan not red. drawing the radar first and the > > hw second yields inverse radar colors. > In what order are you layering the images? According to [1] they are layered > le

Re: [9fans] radar for plan 9, and two draw funnies.

2009-12-12 Thread Jacob Todd
On Fri, Dec 11, 2009 at 08:51:21PM -0500, erik quanstrom wrote: > 1. for some reason the hw.gif (interstates) are > in cyan not red. drawing the radar first and the > hw second yields inverse radar colors. In what order are you layering the images? According to [1] they are layered left to right

Re: [9fans] radar for plan 9, and two draw funnies.

2009-12-12 Thread Russ Cox
On Sat, Dec 12, 2009 at 8:09 AM, erik quanstrom wrote: > i'm sure this could be smaller, but i've got to run. When you get back, please look into cutting it down to a smaller case. For example, you could use crop to isolate the small regions that it takes to reproduce the problem. Even better,

Re: [9fans] radar for plan 9, and two draw funnies.

2009-12-12 Thread erik quanstrom
i'm sure this could be smaller, but i've got to run. the images are here: /n/sources/contrib/quanstro/drawfunny/images/ ; 8.out <{jpg -t9 /lib/radar/*.jpg} <{gif -t9 /lib/radar/hw.gif} <{gif -t9 /lib/radar/radar.gif}|page #include #include #include #include #include #include enum {

Re: [9fans] radar for plan 9, and two draw funnies.

2009-12-12 Thread Russ Cox
> still, why is red getting turned to cyan? post a tiny program that demonstrates the bug and i'll look into it. you pointed at a directory with a complex program in it, and i don't have time to dig through it. russ

Re: [9fans] radar for plan 9, and two draw funnies.

2009-12-12 Thread erik quanstrom
On Sat Dec 12 09:59:41 EST 2009, r...@swtch.com wrote: > > why would m8 != r8g8b8? > > m8 is approximately r2g2b2. > you don't have nearly enough > precision to do image compositing > and get useful results. that makes sense. > a better question would be why > you are using m8. jpg without -t d

Re: [9fans] radar for plan 9, and two draw funnies.

2009-12-12 Thread Russ Cox
> why would m8 != r8g8b8? m8 is approximately r2g2b2. you don't have nearly enough precision to do image compositing and get useful results. a better question would be why you are using m8. russ

[9fans] radar for plan 9, and two draw funnies.

2009-12-11 Thread erik quanstrom
once upon a time, it was pretty easy to get a radar image on the web. these days, they're fancy. the one i use is http://radar.weather.gov/ridge which consists of a number of transparent images that need to be overlaid. this can be done with page, but it's pretty painful without double-buffering,