Spectra Pattern Generator

What does it do?

Suitable for knitting scarves, beading necklaces, etc, etc. Originally I was going to write something more, but there's not really that much more to say. Have a look at Becky Stern's page (link at bottom) to get the idea.

Tips

The human visual range is roughly 3900 to 7500 ångströms. Anything outside of this range is invisible to us and will be rendered black (except in the Monotone colour model), so it's probably not worth extending your scarf beyond this. The Bruton and XYZ colour models give more "realistic" spectra, but require a huge variety of shades of wool. Unless you dye your own, you are probably better off with the Rainbow (a seven colour posterisation into the traditional ROY G BIV / Paranoia colours) or Monotone colour models.

Similarly, to cut down on colour variety, I have not directly modeled line intensity. Instead, a value is found for the single most intense line, and then all the lines are compared to this brightest value. If the line is at least half as bright as the brightest line, it gets to bleed one row further to the right. If it is at least 85% as bright, it gets an additional two rows instead (for a total of three). So the brightest areas should produce a fat line.

Catie suggests a good rule of thumb for calculating yarn usage per row is to multiply the width of the scarf by 3, then by two again if it's a tube scarf.

The Form

Element
Lower wavelength bound (ångström):
Upper wavelength bound (ångström):
Length (total, cm):
Length (single row, cm):
Length (black ends, cm):
Colour model:
  Bruton Example
  Rainbow (posterised) Example
  XYZ Example
  Monotone Example
 

Source Code

Here, written in Python.

Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 2.5 Australia License. The author is Bryn Davies, curious.jp@gmail.com.

Acknowledgements

This project would never have gotten off the ground without the support, inspiration or resources provided by the following individuals and organisations.