#282254 ucblogo: epspict drawn with default colors exports a black on black image

Package:
ucblogo
Source:
ucblogo
Description:
dialect of lisp using turtle graphics famous for teaching kids
Submitter:
Vassilii Khachaturov
Date:
2019-09-19 00:36:03 UTC
Severity:
normal
#282254#5
Date:
2004-11-20 19:54:31 UTC
From:
To:
Draw something with the default color settings (don't change background
and the pencolor). Then use epspict to generate an EPS snapshot of the
graphics window. It will be black on black.

To workaround, go to the 10th line of the resulting EPS file and change

0.0000 0.0000 0.0000 setrgbcolor

to

1.0000 1.0000 1.0000 setrgbcolor

#282254#10
Date:
2004-11-20 20:18:58 UTC
From:
To:
I have read a bit the generated EPS code,
and realized what the mistake is. The setting of the color
is actually an attempt to black out the background area.
It is the pencolor (white) that is never set, and it defaults to
black initially in PS as well (as opposed to the Logo initial
default, white).


So what is missing is setting the rgbcolor AFTER the grestore
as the blackcount is blackened out. Note that my initial workaround
resulted in a reverse-color EPS image (black on white).

Alternatively, the whole gsave...grestore section in the beginning
of the EPS can be commented out, in that case the effect will be
just as in the initial workaround posted, but with less work done
in vain - no need to whiten an already white background. In case
of a monochrome drawing by Logo exported for printing, this is probably
better toner-wise.

Vassilii

#282254#15
Date:
2007-03-19 15:50:26 UTC
From:
To:
Just retested as per the original report, still exists in the new
version, 5.5-2.