Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #1450
| 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> |
| Date | 2013-07-15 20:56 +0200 |
| Message-ID | <874nbvd53k.fsf@Aspire.decebal.nl> (permalink) |
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
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