🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.postscript.programming
Article #44

Re: Editing Postscript file

#44
From: Eric_Burton
Date: Mon, 09 Mar 2009 17:51
20 lines
1231 bytes
Do you want to hard code the fill color of the polygon, or do you want the ability to change it dynamically later on via a .NET component?

of course the postScript for setting a color is

C M Y K setcmykcolor

or

R G B setrgbcolor

where each letter parameter is a percentage value of 1 (read .5 for 50%) for its corresponding color. Depends if you like RGB or CMYK color.

so in the postScript code, you could insert or change the color and fill to something like

1 0 0 0 setcmykcolor
fill

which would set the color to blue, then fill the current path.

I am not sure if this is what you are looking for or not.
Technical Details
Message-ID: <59b7f88b.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
References: <59b7f88b.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10c61a,e9f54440f2f685b7
X-Google-Attributes: gid10c61a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Eric_Burton@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.postscript.programming
Subject: Re: Editing Postscript file
Message-ID: <59b7f88b.0@webcrossing.la2eafNXanI>
Date: Mon, 9 Mar 2009 10:51:57 -0700
References: <59b7f88b.-1@webcrossing.la2eafNXanI>
Lines: 23
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit