Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion shfill: /ShadingType 2, computed parameters
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jdaw1  
View profile  
 More options Mar 11 2010, 7:38 pm
Newsgroups: comp.lang.postscript
From: jdaw1 <jdawise...@gmail.com>
Date: Thu, 11 Mar 2010 16:38:42 -0800 (PST)
Local: Thurs, Mar 11 2010 7:38 pm
Subject: Re: shfill: /ShadingType 2, computed parameters
Another note to self:

/RaysStrokeCode
{
        ThisName (Julian) eq {0.75 setgray stroke}
        {
                0.36 setlinewidth
                WithinPage0 WithinPage1 eq
                {
                        RaysAngle0 90 add RaysAngleOffset sub 1 mul 360 div {dup 1 ge {1
sub} {exit} ifelse} loop  1  0.8  sethsbcolor  stroke
                }
                {
                        strokepath clipsave clip
                        % Help received at groups.google.com/group/comp.lang.postscript/
browse_thread/thread/888d4167a7eaadb2
                        <<
                                /Function
                                <<
                                        /DataSource
                                        RaysAngle0 90 add RaysAngleOffset sub 1 mul 360 div {dup 1 ge {1
sub} {exit} ifelse} loop  1  0.8  gsave sethsbcolor currentrgbcolor
grestore
                                        RaysAngle1 90 add RaysAngleOffset sub 1 mul 360 div {dup 1 ge {1
sub} {exit} ifelse} loop  1  0.8  gsave sethsbcolor currentrgbcolor
grestore
                                        (123456)  % 6 numbers, one byte each; can re-use string so will
                                        5 -1 0 {exch dup 4 2 roll exch  255 mul 0.5 add floor cvi  put}
for
                                        /BitsPerSample 8
                                        /FunctionType 0   /Domain [0 1]   /Range [0 1  0 1  0 1]   /Order
1   /Size [2]   /N 1
                                >>
                                /Coords [ X0 Y0 X1 Y1 ]
                                /ShadingType 2   /ColorSpace /DeviceRGB   /Extend [true dup]
                        >>
                        shfill cliprestore newpath
                } ifelse  % WithinPage0 WithinPage1 eq
        } ifelse  % ThisName ...

} def  % /RaysStrokeCode


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.