Re: Sample line drawing app

Carl Worth <[email protected]>
Newsgroups gmane.comp.xfree86.render
Message-ID <[email protected]>
On May 17, Keith Packard wrote:
 > Around 18 o'clock on May 17, Jorge Valencia wrote:
 > 
 > > Where can I find precompiled binaries for SuSE (7.1 if possible) of the
 > > current XFree86 tree that includes the latest XRender code to test/debug
 > > the AA line code?
 > 
 > The code is rather fresh, you'll be best off running out of XFree86 CVS if 
 > you want to play with it.

Do as Keith says.

Also, the aaline program in the CVS tree at keithp.com can be used to
get a feel for what lines of various widths will look like. It's also
nice for interactively watching what happens to polygon edges at
various slopes.

I just changed it so that each button draws lines in a different
translucent color such that the most recent line stacks up on top of
the others. Best with a line width of 10 or more, "aaline -lw 10", to
see the effects of the compositing. Of course, it supports non-integer
line widths as well.

It's also handy for exploring the effects of the various RENDER
operators. Currently it uses PictOpOver which gives an effect similar
to stacking translucent objects. You can change the source to use
PictOpAdd which is similar to the effect of adding beams of colored
light together. I'm still not sure what the correct physical metaphor
would be, (if any), for each of the other RENDER operators.

-Carl

-- 
Carl Worth                                        
USC Information Sciences Institute                 [email protected]
3811 N. Fairfax Dr. #200, Arlington VA 22203		  703-812-3725
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.