photos

15/Apr/2010 PA
12/Apr/2009 Sunrise Circus
15/Mar/2009 Lego
08/Mar/2009 Moomba
13/Feb/2009 Car Smokey Sunset
26/Jan/2009 Fireworks
26/Oct/2008 Synchrotron
07/Jun/2008 Model Trains
06/Jun/2008 Wedding
04/Jun/2008 Central Coast Trip
more photos...

lavtools

03/Nov/2011 yuvvalues
03/Nov/2011 yuvrfps
03/Nov/2011 yuvdiff
03/Nov/2011 yuvaddetect
03/Nov/2011 yuv2jpeg
more lavtools...

Creativity

The TRIP is the mental projection of my digital self. Including all areas of digital work I have been involved with, including Music, video, photography...

All good web pages must have the collection of absolutely useless pictures. Designed for no purpose other than to consume kilobits. And hopefully show off some of my Photographic skills. Web design skills, and uses one php script to drive the whole index. Also see the Photography section of the Silicontrip Website.

The Creative section of the TRIP is my imagination trying to run free. I have a fascination with sexual, spiritual and meta physical abilities, and these stories show it.

Part of the images directory contains some of my digital artwork. These images have been created or enhanced by myself, with the help of the 1s and 0s machine.

album

23/Feb/2011 Trace
17/Jan/2010 Food
30/Oct/2009 Airbrush
18/Jun/2009 Focal
01/Jun/2009 Transport
01/Jun/2009 Misc
31/May/2009 Artwork
24/Apr/2009 AirbrushScales
18/Apr/2009 Probe
10/Jan/2009 Scanimation
more album...

blog

27/Jan/2012 ZFS for OSX
14/Dec/2011 Scripting Bridge
02/Dec/2011 Core Audio Units
01/Mar/2011 A useful bit of code
22/Dec/2010 Larger than 4G files on FAT for OSX
08/Dec/2009 Time machine on non HFS drives
21/Oct/2009 My Strengths
27/Aug/2009 Train Hitchiking
11/Jul/2009 A litre of onions
19/Jun/2009 FSCK for NTFS
18/Jun/2009 Automated Focal Deconstruction
12/Jun/2009 Perl code to write BMPs
07/Jun/2009 More Lego
01/Jun/2009 Latest Airbrushing
30/May/2009 Happy Birthday to me
24/May/2009 Comments Engine
09/May/2009 Skills Matrix
24/Apr/2009 Airbrush simulator
19/Apr/2009 Ben 10 Board game
29/Mar/2009 How fresh is your fresh food?
more blog...

BACK

05/Mar/2008

Postscript Rocks Spirograph

I was fascinated by a particular pattern from the Spirograph book, which I had a Spirograph set when I was a child. I still remember the ring and wheel dimensions today (being 105 / 52) The pattern troubled me, as I really desired to draw it but never mastered the pen control needed.

Later I found computer simulators of spirograph sets. Sin and Cosine to calculate the big arm and then a smaller arm on top of that. However none of the Programs would produce the 105/52 pattern as I remembered. I wrote my own Spirograph in AMOS basic, and managed to get a more correct result.

Today my language of choice for line art graphics is Postscript. So you may've seen, that I have a postscript spirograph program floating around this site.

Cleaning out my cupboards the other day, I happened to come across the old spirograph booklet showing patterns and procedure to produce them. So I cleaned up my Postscript code, made some refinements so that my postscript subroutines closely matched the language used in the book and ended up with something that closely resembles the original.


The language, if you aren't familiar with postscript, is reverse polish, where the arguments to a function come first, then the function name. The function simply pulls as many arguments off the stack as required. The % symbol is used for comments.

The code for an example pattern would look like:

	96 ring       % set the ring size to 96
	63 wheel      % set the wheel size to 63
	
	1 270 paint   % in hole 1, using colour purple (270) paint the graph
	3 210 paint   % in hole 3, using colour blue (210) paint the graph
	5 45 paint    % in hole 5, using colour orange (45) paint the graph
	7 0 paint     % in hole 7, using colour red (0) paint the graph

of course I can use standard postscript "for" loops to do very repeative patterns

	105 ring                  % set the ring to 105
	
	30 wheel                  % set the wheel to 30
	1 1 5 { 270 paint } for   % paint, in colour purple, holes 1 to 5 
	45 wheel                  % set the wheel to 45
	1 1 5 { 45 paint } for    % paint, in colour orange, holes 1 to 5
	60 wheel                  % set the wheel to 60
	1 1 5 { 0 paint } for     % paint, in colour red, holes 1 to 5

Using the postscript translate command I can simulate patterns that move the ring between two rack pieces.

	96 ring                                  % set the ring to 96
	48 wheel                                 % set the wheel to 48
	
	1 1 17 { 0 paint -10 0 translate } for   % paint, in colour red, holes 1 to 17,
	                                         % moving 10 points down each time

Currently I do not have the ability to;

I hope you like the patterns.


Comments

Your name:

Your comments: