Subject: Re: pkgsrc logo
To: None <tech-pkg@NetBSD.org>
From: Roland Illig <roland.illig@gmx.de>
List: tech-pkg
Date: 05/20/2005 14:33:08
This is a multi-part message in MIME format.
--------------060800060901020708010101
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Hubert Feyrer wrote:
> On Fri, 20 May 2005, Roland Illig wrote:
>
>> I couldn't resist playing with PostScript again, so here's my first
>> draft. It doesn't use the font used by Hubert (LuxiMono-BoldItalic),
>> but it's configurable even for monochrome.
I will try to change the font to LuxiMono, which I like more, too.
The color model can be configured even better in my current version,
which has this configuration:
/pkgsrc-monochrome true def % monochrome or color?
/pkgsrc-scale 100 def % see BoundingBox above
/pkgsrc-corner-radius 0.1 def % rounded corners for the package
I will continue working on it.
Roland
--------------060800060901020708010101
Content-Type: application/postscript;
name="pkgsrc-logo.eps"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="pkgsrc-logo.eps"
%!PS-Adobe-3.0
%%Creator: Roland Illig <rillig@NetBSD.org>
%%Title: The pkgsrc logo
%%LanguageLevel: 2
%%BoundingBox: 0 0 100 60
% based on work of Hubert Feyrer <hubertf@NetBSD.org> (PNG logo)
% based on http://www.netbsd.org/images/logos/jiang/netbsd-logo3-small.jpg
/pkgsrc-monochrome true def % monochrome or color?
/pkgsrc-scale 100 def % see BoundingBox above
/pkgsrc-corner-radius 0.1 def % rounded corners for the package
%%Page: 1 1
% . => r g b
/pkgsrc-boxcolor {
pkgsrc-monochrome {
0.800 dup dup
}{
0.976 0.480 0.089
} ifelse
} bind def
% . => r g b
/pkgsrc-textcolor {
pkgsrc-monochrome {
0.200 dup dup
}{
0.464 dup dup
} ifelse
} bind def
% n => n
/pkgsrc-scaled {
pkgsrc-scale mul
} bind def
% x1 y1 x2 y2 part => x y
/pkgsrc-cut {
4 index dup % x1 x1
4 index sub neg % x1 (x2-x1)
2 index % x1 x2 part
mul add % ((x1 + (x2-x1)*part)
4 index dup % x y1 y1
4 index sub neg % x y1 (y2-y1)
3 index % x y1 y2 part
mul add % x ((y1 + (y2-y1)*part)
7 2 roll
pop pop pop pop pop
} bind def
% x1 y1 x2 y2 x3 y3 => .
/pkgsrc-edge {
/pe-y3 exch def /pe-x3 exch def
/pe-y2 exch def /pe-x2 exch def
/pe-y1 exch def /pe-x1 exch def
pe-x2 pe-y2 pe-x1 pe-y1 pkgsrc-corner-radius pkgsrc-cut
lineto
pe-x2 pe-y2 pe-x2 pe-y2
pe-x2 pe-y2 pe-x3 pe-y3 pkgsrc-corner-radius pkgsrc-cut
curveto
} bind def
% x1 y1 x2 y2 x3 y3 x4 y4 => .
/pkgsrc-diamond {
/y4 exch pkgsrc-scaled def /x4 exch pkgsrc-scaled def
/y3 exch pkgsrc-scaled def /x3 exch pkgsrc-scaled def
/y2 exch pkgsrc-scaled def /x2 exch pkgsrc-scaled def
/y1 exch pkgsrc-scaled def /x1 exch pkgsrc-scaled def
x1 y1 x2 y2 pkgsrc-corner-radius pkgsrc-cut moveto
x1 y1 x2 y2 x3 y3 pkgsrc-edge
x2 y2 x3 y3 x4 y4 pkgsrc-edge
x3 y3 x4 y4 x1 y1 pkgsrc-edge
x4 y4 x1 y1 x2 y2 pkgsrc-edge
closepath fill
} bind def
% x y text => .
/pkgsrc-print {
/Courier-BoldItalic findfont 0.190 pkgsrc-scaled scalefont setfont
pkgsrc-scaled exch pkgsrc-scaled exch moveto
show
} bind def
pkgsrc-boxcolor setrgbcolor
0.298 0.495 0.531 0.328 0.428 0.043 0.235 0.240 pkgsrc-diamond
0.338 0.516 0.554 0.544 0.752 0.407 0.557 0.362 pkgsrc-diamond
0.564 0.323 0.765 0.372 0.695 0.137 0.462 0.036 pkgsrc-diamond
pkgsrc-textcolor setrgbcolor
(pkg) 0.120 0.228 pkgsrc-print
(src) 0.548 0.184 pkgsrc-print
showpage
%%Trailer
%%EOF
--------------060800060901020708010101--