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:14:43
This is a multi-part message in MIME format.
--------------030609070700080802010803
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hubert Feyrer wrote:
> 
> Inspired by 
> http://www.netbsd.org/images/logos/jiang/netbsd-logo3-small.jpg, I've 
> played a bit with gimp to come up with a pkgsrc logo. Here's what I 
> ended up with:
> 
>     http://www.feyrer.de/NetBSD/images/pkgsrc-logo.png
> 
> draft quality, mostly as proof of concept.

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.

Roland

--------------030609070700080802010803
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

% remember to set pkgsrc-scale below to the width of the bounding box

%%Page: 1 1

% . => r g b
/pkgsrc-orange {
	250.0 256.0 div
	123.0 256.0 div
	 23.0 256.0 div
} bind def

% . => r g b
/pkgsrc-gray {
	119.0 256.0 div
	dup
	dup
} bind def

/pkgsrc-corner-radius
	0.1
def

/pkgsrc-scale {
	100.0 %pt
	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-scale def /x4 exch pkgsrc-scale def
	/y3 exch pkgsrc-scale def /x3 exch pkgsrc-scale def
	/y2 exch pkgsrc-scale def /x2 exch pkgsrc-scale def
	/y1 exch pkgsrc-scale def /x1 exch pkgsrc-scale 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-scale scalefont setfont
	pkgsrc-scale exch pkgsrc-scale exch moveto
	show
} bind def

pkgsrc-orange 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-gray setrgbcolor
(pkg) 0.120 0.228 pkgsrc-print
(src) 0.548 0.184 pkgsrc-print

showpage

%%Trailer
%%EOF

--------------030609070700080802010803--