On Monday 01 July 2002 6:51 pm, Andre Poenitz wrote:
> Is that solved by some snippet David sent a few days ago?

Hmm. Probably. I can't get them to work. See below.

> --------------------------------------------------------------------
> One thing I have noticed from your screenshot is that the colors are
> off.
>
> If you are just working via command line, try
> -c 0.5 0.3 0.7 setrgbcolor clippath fill 0.2 0.8 0.9 setrgbcolor -f

I'll be damned if it works for me. No change at all. I append the shell 
script I use and the ps file since it's quite small. Any ideas?

> on the GhostScript command line after the device has been set, of
> course using the RGB values of the current background and foreground
> colors of the LyX window.  If you have those as integer numbers, you
> can write
> -c '[' 45 54 54 234 234 234 ']' '{' 255 div '}' forall setrgbcolor
>     clippath fill setrgbcolor -f

Error: /syntaxerror in -file-
Operand stack:
   --nostringval--
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--   
--nostringval--   false   1   %stopped_push   .runexec2   --nostringval--   
--nostringval--   --nostringval--   2   %stopped_push   --nostringval--   
--nostringval--
Dictionary stack:
   --dict:1035/1476(ro)(G)--   --dict:0/20(G)--   --dict:67/200(L)--
Current allocation mode is local
GNU Ghostscript 6.53: Unrecoverable error, exit code 1

> (here background color triple comes first).
>
> Or if you have them in hex, just write
> -c '<45afcf003b3c>' '{' 255 div '}' forall setrgbcolor clippath fill
>   setrgbcolor -f

Error: /syntaxerror in -file-
Operand stack:
   (\000\000\000\372\360\346)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--   
--nostringval--   false   1   %stopped_push   .runexec2   --nostringval--   
--nostringval--   --nostringval--   2   %stopped_push   --nostringval--   
--nostringval--
Dictionary stack:
   --dict:1035/1476(ro)(G)--   --dict:0/20(G)--   --dict:67/200(L)--
Current allocation mode is local
GNU Ghostscript 6.53: Unrecoverable error, exit code 1

>
> Here the first 6 hexadecimal digits are foreground RGB.
> --------------------------------------------------------------------
>
>
> Andre'

Attachment: trial.ps.gz
Description: GNU Zip compressed data

Attachment: conv.sh
Description: application/shellscript

Reply via email to