|
From: Per P. <per...@ma...> - 2006-04-17 16:11:14
|
On Apr 17, 2006, at 00:51, Ethan A Merritt wrote:
> On Sunday 16 April 2006 03:13 pm, Per Persson wrote:
>>>
>>> Several other terminals implement colored fill patterns as differing
>>> intensity. E.g. (from emf.trm):
>>> case FS_PATTERN: /* pattern fill implemented as partial
>>> density */
>>> fillpar *= 12;
>>> /* Fall through to ...*/
>>> case FS_SOLID: /* solid fill */
>>> if (fillpar >= 0 && fillpar < 100) {
>>> double density = (double)fillpar / 100.;
>>
>> That's how its done in aqua too, but for B/W patterns make sense.
>
> Except that so far as I can tell from the code, aqua is cycling
> through different colors rather than cycling the same color
> through different fill intensities. If I'm reading that
> right, it means that
> plot <foo> with boxes lt 1 fillstyle pattern 2
> and
> plot <foo> with boxes lt 2 fillstyle pattern 1
> produce the same output, which is a surprising result.
Whoops, sorry I mixed it up with the "solid <density>" option.
Still, I'm a little confused. In the above examples, in AquaTerm I
get boxes with red outline (lt 1) and blue fill (pattern 2) in the
first case and green outline (lt 2) and green fill (pattern 1).
Wouldn't cycling through colours give a better visual appearance than
shades of the outline color (effectively mapping "pattern x" to
"solid <y>")?
>
>>> It looks like AQUA_set_color is missing TC_LT from
>>> its case statement, for example. That is probably a trivial fix,
>>> but
>>> there may be other places that bits are missing.
>>
>> Like I said before, I haven't paid close attention lately and I
>> probably have missed adding upport for new features.
>> Pointers to docs/examples?
OK, I've fixed that. Before I commit anything though, when are
TC_DEFAULT, TC_LINESTYLE, and TC_Z used? I couldn't find any clear
docs on that.
/Per
|