Re: Visibility against an unknown background

2006-10-25 Thread Sergei Organov
Fredrik Lundh <[EMAIL PROTECTED]> writes: > Sergei Organov wrote: > [...] >> Where "most cases" depends on application. I'd be very upset to see, >> say, 5-6 highly intersecting scientific plots on the same picture drawn >> using the "marching ants" approach. > > but the mostly random colors you ge

Re: Visibility against an unknown background

2006-10-25 Thread Sergei Organov
"Filip Salomonsson" <[EMAIL PROTECTED]> writes: > On 10/24/06, Sergei Organov <[EMAIL PROTECTED]> wrote: >> I'd be very upset to see, say, 5-6 highly intersecting >> scientific plots on the same picture drawn using the >> "marching ants" approach. > > I'd be a bit upset to see scientific plots *on

Re: Visibility against an unknown background

2006-10-24 Thread Ben Finney
Grant Edwards <[EMAIL PROTECTED]> writes: > The traditional way to draw lines on something with varying colors > is to use the "xor" operator when drawing the lines. But first, negotiate a patent license for this highly innovative and non-obvious technique that is "owned" as US Patent #4,197,590.

Re: Visibility against an unknown background

2006-10-24 Thread Fredrik Lundh
Sergei Organov wrote: > > and doesn't work at all on medium gray or b/w dithered patterns. > > Yes, every method has its pros and cons, but XOR is probably most > efficient. back in the days when backing store was expensive, and memory bandwidth was limited, maybe. contemporary graphics har

Re: Visibility against an unknown background

2006-10-24 Thread Filip Salomonsson
On 10/24/06, Sergei Organov <[EMAIL PROTECTED]> wrote: > I'd be very upset to see, say, 5-6 highly intersecting > scientific plots on the same picture drawn using the > "marching ants" approach. I'd be a bit upset to see scientific plots *on a picture* at all, regardless of approach. -- filip sal

Re: Visibility against an unknown background

2006-10-24 Thread Grant Edwards
On 2006-10-24, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Sergei Organov wrote: > >> There is a better way to do it. Check if the toolkit has line >> drawing mode that XORs the line color with the background, >> then draw using this mode and white color of the line. > > which means that the selecti

Re: Visibility against an unknown background

2006-10-24 Thread Sergei Organov
Fredrik Lundh <[EMAIL PROTECTED]> writes: > Sergei Organov wrote: > >> There is a better way to do it. Check if the toolkit has line drawing >> mode that XORs the line color with the background, then draw using this >> mode and white color of the line. > > which means that the selection looks like

Re: Visibility against an unknown background

2006-10-24 Thread Fredrik Lundh
Sergei Organov wrote: > There is a better way to do it. Check if the toolkit has line drawing > mode that XORs the line color with the background, then draw using this > mode and white color of the line. which means that the selection looks like crap most of the time, and doesn't work at all on

Re: Visibility against an unknown background

2006-10-24 Thread Sergei Organov
"Odalrick" <[EMAIL PROTECTED]> writes: > I need to draw visible lines on pictures with wxPython. That means I > can't simply use, for instance, a black line since it wont be visible > on a black or dark picture. > > Painting applications like the GIMP accomplish this by altering the > colour of th

Re: Visibility against an unknown background

2006-10-24 Thread Grant Edwards
On 2006-10-24, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2006-10-24, Odalrick <[EMAIL PROTECTED]> wrote: > >> I need to draw visible lines on pictures with wxPython. That means I >> can't simply use, for instance, a black line since it wont be visible >> on a black or dark picture. >> >> Painti

Re: Visibility against an unknown background

2006-10-24 Thread Grant Edwards
On 2006-10-24, Odalrick <[EMAIL PROTECTED]> wrote: > I need to draw visible lines on pictures with wxPython. That means I > can't simply use, for instance, a black line since it wont be visible > on a black or dark picture. > > Painting applications like the GIMP accomplish this by altering the >

Re: Visibility against an unknown background

2006-10-24 Thread Paul McGuire
"Odalrick" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I need to draw visible lines on pictures with wxPython. That means I > can't simply use, for instance, a black line since it wont be visible > on a black or dark picture. > > Painting applications like the GIMP accomplish this

Visibility against an unknown background

2006-10-24 Thread Odalrick
I need to draw visible lines on pictures with wxPython. That means I can't simply use, for instance, a black line since it wont be visible on a black or dark picture. Painting applications like the GIMP accomplish this by altering the colour of the line based on the colour of the pixel it covers,