Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #1450

Re: Rainbow printing

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.pionier.net.pl!feed.xsnews.nl!border-1.ams.xsnews.nl!post-feeder-01.xsnews.nl!frontend-F09-08.ams.news.kpn.nl
From Cecil Westerhof <Cecil@decebal.nl>
Newsgroups comp.lang.postscript
Subject Re: Rainbow printing
Organization Decebal Computing
References <87fvvfde6v.fsf@Aspire.decebal.nl> <2ab35483-9e59-4696-875b-b718c82385ea@googlegroups.com>
X-Homepage http://www.decebal.nl/
Date Mon, 15 Jul 2013 20:56:47 +0200
Message-ID <874nbvd53k.fsf@Aspire.decebal.nl> (permalink)
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)
Cancel-Lock sha1:GtKYC1SXcHDeHX6kKbosNmhpn5g=
MIME-Version 1.0
Content-Type text/plain
Lines 69
NNTP-Posting-Host 77.171.42.144
X-Trace 1373914257 news.kpn.nl 30444 77.171.42.144@kpn/77.171.42.144:44897
Xref csiph.com comp.lang.postscript:1450

Show key headers only | View raw


Op maandag 15 jul 2013 18:54 CEST schreef abeddie@hotmail.com:

> On Monday, July 15, 2013 11:40:24 AM UTC-4, Cecil Westerhof wrote:
>> I would like to print things with a rainbow stripe. So the top
>> would
>>
>> be red, the bottom would be violet and the other colours would be
>> in
>>
>> between. Is it possible to do this?
>>
>>
>>
>> -- 
>>
>> Cecil Westerhof
>>
>> Senior Software Engineer
>>
>> LinkedIn: http://www.linkedin.com/in/cecilwesterhof
>
> Looking into shading dictionaries example included:
>
> %!
> 100 400 300 200 rectclip
> <<
> /ShadingType 2
> /ColorSpace [ /DeviceRGB ]
> /Coords [100 400 400 600 ]
> /Function
> <<
> /FunctionType 2
> /Domain [ 0 1 ]
> /C0 [ 1 0 0 ]
> /C1 [ .5 1 .5 ]
> /N 1
>>>
>>>
> shfill
> showpage

That gives a gradient fill. I mean more something like:
    %!PS-Adobe-3.0 EPSF-3.0
    %%BoundingBox: 0 0 300 450

    1 1 1 setrgbcolor
    0 0 300 450 rectfill
    1 0 0 setrgbcolor
    100 350 100 50 rectfill
    1 0.5 0 setrgbcolor
    100 300 100 50 rectfill
    1 1 0 setrgbcolor
    100 250 100 50 rectfill
    0 1 0 setrgbcolor
    100 200 100 50 rectfill
    0 0 1 setrgbcolor
    100 150 100 50 rectfill
    .31 0 .5 setrgbcolor
    100 100 100 50 rectfill
    .94 .5 .94 setrgbcolor
    100 50 100 50 rectfill
    showpage

But then only for the object drawn, for example some text.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Rainbow printing Cecil Westerhof <Cecil@decebal.nl> - 2013-07-15 17:40 +0200
  Re: Rainbow printing abeddie <abeddie@hotmail.com> - 2013-07-15 09:54 -0700
    Re: Rainbow printing Cecil Westerhof <Cecil@decebal.nl> - 2013-07-15 20:56 +0200
      Re: Rainbow printing Mark Carroll <mtbc@bcs.org> - 2013-07-15 20:19 +0100
        Re: Rainbow printing Cecil Westerhof <Cecil@decebal.nl> - 2013-07-16 01:48 +0200
          Re: Rainbow printing Cecil Westerhof <Cecil@decebal.nl> - 2013-07-17 11:36 +0200
  Re: Rainbow printing Helge Blischke <h.blischke@acm.org> - 2013-07-15 18:56 +0200
  Re: Rainbow printing Michael Unger <spam.to.unger@spamgourmet.com> - 2013-07-15 19:06 +0200
    Re: Rainbow printing Michael Unger <spam.to.unger@spamgourmet.com> - 2013-07-15 22:07 +0200
  Re: Rainbow printing John Deubert <john@acumentraining.com> - 2013-07-16 16:34 -0700
    Re: Rainbow printing Cecil Westerhof <Cecil@decebal.nl> - 2013-07-17 09:10 +0200
  Re: Rainbow printing sjprouty3765@gmail.com - 2013-07-17 15:08 -0700
    Re: Rainbow printing Cecil Westerhof <Cecil@decebal.nl> - 2013-07-18 05:22 +0200
  Re: Rainbow printing luser- -droog <mijoryx@yahoo.com> - 2013-07-17 15:22 -0700
    Re: Rainbow printing luser- -droog <mijoryx@yahoo.com> - 2013-07-17 16:55 -0700
    Re: Rainbow printing Cecil Westerhof <Cecil@decebal.nl> - 2013-07-18 05:22 +0200

csiph-web