Skip to content

POSTSCRIPTSTREAM: Enable color names and RGB triples #2127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

MattHeffron
Copy link
Contributor

I tried to put in support for standard color specifications.
I think this is pretty close.
Very limited testing!!
BLTSHADE, FILLCIRCLE, and FILLPOLYGON with the TEXTURE as TEXTUREP or BITMAPP convert to a gray scale as a function of the number of bits set, I think. It'll take a bunch more refreshing of PostScript knowledge to figure out how to do these with real colors, and actual pixel-by-pixel textures.

I think this is pretty close.
BLTSHADE, FILLCIRCLE, and FILLPOLYGON with the TEXTURE as TEXTUREP or BITMAPP convert to a gray scale as a function of the number of bits set, I think.
It'll take a bunch more refreshing of PostScript knowledge to figure out how to do these with real colors, and actual pixel-by-pixel textures.
@MattHeffron MattHeffron added the enhancement New feature or request label Apr 27, 2025
@MattHeffron MattHeffron requested a review from hjellinek April 27, 2025 01:20
@MattHeffron MattHeffron self-assigned this Apr 27, 2025
@MattHeffron
Copy link
Contributor Author

@hjellinek Can I get your test code for the HTML stream to try against POSTSCRIPTSTREAM?
I don't have anything for trying colors.

@hjellinek
Copy link
Contributor

Yes, definitely, I'll send it to you tomorrow (4/27) when I'm back in front of the computer.

@hjellinek
Copy link
Contributor

I've attached a the color test function from my HTML unit tests. You'll need to replace the call to OPENHTMLSTREAM with OPENIMAGESTREAM and a suitably-named output file.

I've also attached a cropped screen shot of what the output looks like.

Source code: color-test.lisp
screenshot_862

I still haven't tested with BITMAPP or TEXTUREP textures.
@MattHeffron
Copy link
Contributor Author

I also modified the COLOR-TEST a bit.
Now it is an "Interlisp" file:
COLOR-TEST.txt
(.txt added so GitHub will take it.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants