Noisebridge logo EPS: Difference between revisions

From Noisebridge
Jump to navigation Jump to search
(Added EPS implementation of Noisebridge logo.)
 
(Fixed link to Identity, and added a link to the rendered version.)
 
Line 1: Line 1:
This page contains hand-written Encapsulated PostScript-compatible code that generates [Identity the Noisebridge logo].
This page contains hand-written Encapsulated PostScript-compatible code that generates [[Identity|the Noisebridge logo]].


Currently, this code does not include the text. This will be added in a later version (once the paths can be translated from SVG).
Currently, this code does not include the text. This will be added in a later version (once the paths can be translated from SVG).
For a rendered version of this code, see [[File:Noisebridge-notext.pdf]].


<pre>
<pre>

Latest revision as of 09:34, 15 October 2019

This page contains hand-written Encapsulated PostScript-compatible code that generates the Noisebridge logo.

Currently, this code does not include the text. This will be added in a later version (once the paths can be translated from SVG).

For a rendered version of this code, see File:Noisebridge-notext.pdf.

%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 0 0 216 216
%%EndComments

% Switches you can flip!
/background true def % Set to false if you want a black-and-white Noisebridge logo (just the black line-art, no background).
/useCMYK true def % Set to true if you want the red background defined in CMYK rather than RGB. Looks less impressive on monitors, but improves fidelity for print shops. May hinder more than help with home printing, as some printer drivers unhelpfully convert everything to RGB anyway.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

background {
	% Red disc background
	216 108 moveto
	108 108 108 0 360 arc
	useCMYK {
		0 1 1 0 setcmykcolor
	} {
		% Color values documented on https://www.noisebridge.net/wiki/Identity
		237 255 div 14 255 div 18 255 div setrgbcolor
	} ifelse
	fill
} if

0 setgray
5.4 dup scale
1 setlinewidth

% Circle border
20 1 moveto
20 20 18.5 270 270 360 add arc
20 20 17.5 270 180 arcn
stroke

% Circuit
% Speaker x positions: 26 30 33
% Speaker y positions: 15 17.75 22.5 15
% We start at the lower-middle of the speaker, where the cone meets the driver.
1.25 setlinewidth
30 17.75 moveto
33 15 lineto
33 25 lineto
30 22.5 lineto
26 22.5 lineto
26 17.75 lineto
30 17.75 lineto
30 22.5 lineto
stroke

% Body x positions: 11.25 16.75 20 22.75 28.5
% Body y positions: 11.25 28.5
% Wave x positions: 9 13.5
% Wave y positions: 16 16.5 18 19.5 21 22.5 24 24.5
/radius 1.5 def
% We start on the right side, where the speaker's upper edge is. As is traditional, we move counter-clockwise.
28.5 22.5 moveto
28.5 radius sub 28.5 radius sub radius 0 90 arc
20 28.5 3.25 0 180 arc
11.25 radius add 28.5 radius sub radius 90 180 arc
% Begin wave
11.25 24.75 lineto
9 24 lineto
13.5 22.25 lineto
9 21 lineto
13.5 19.5 lineto
9 18 lineto
13.5 16.5 lineto
11.25 15.75 lineto
% End wave
11.25 radius add 11.25 radius add radius 180 270 arc
20 11.25 3.25 180 0 arcn
28.5 radius sub 11.25 radius add radius 270 360 arc
28.5 17.75 lineto
stroke