However, if you know the design height and width in stitches (h and w) as
well as the fabric count (c), you can compute it yourself as:
height in inches = h / c
width in
inches = w / c
This page also calculates how much fabric to buy. The easy way to find that is to round the two values you computed above up to the next inch and then add six. This will give you a little more than three inches of extra fabric on each side.
I'm sorry this page isn't more helpful for you, but part of its purpose is to show how to use JavaScript on a self-contained page.
If you print this page, print only page 1 to page 1. Turn off the headers and
footers.
If you have a
copy of this page on your computer, you do not need to be connected to the
Internet to use it. Just open the file in your web browser. Read the HTML source
for details including customizing for your shop but not your shop's web page.
Changing the design size in stitches does not automatically change the design size or fabric size. You must press the buttons to update those values. This is a feature, not a bug.
If you accidentally press return or enter, use the back arrow in your browser to return to the page you were filling. Open additonal browser windows and have multiple copies of the page open for comparisons.
When printing, print only the first page. You don't need printed instructions.
Web browsers vary in their commands, but look for something like
Save As. Be sure to
- move to an appropriate directory (your own
documents rather than the browser application's directory)
- save it with a
name like FabricComputer.html
rather than the page's title
-
choose HTML Source
or Source
as the file format
Check whether you have a good copy by opening your local copy as a file in
your web browser. You can probably do this with something like an
Open File or Open Page menu selection. The page's
address in the location field near the top of your browser will start with
file://
rather than the usual http://
. Test whether
the buttons work.
At some later time when you aren't online and want to use the page, you should be able to just double-click the saved file. That should launch your web browser but not try to go online. You should be able to use the computer, calculate, and print the first page without being connected to the Internet. You may have to tell your browser to work off-line.
The code was developed to perform the correct calculations. I also checked many different values. However, if you put in zero, negative values, or letters, the program does little error checking. You might see 'NaN' which means 'Not a Number'. The field sizes hold reasonably stitchable values. Big ones may not fit. Use reasonable values.
Please let me know if you have comments or suggestions.