Working with generated mazes: GIMP charting 2

My previous posts on using gimp to generates charts and images suitable for knitting: 1, 2, 3, 4 . I am working in Mac OS 10.10 now, so there may be some variations in results from earlier OS or for Windows versions users.

the edited repeat from the previous postcropped

It is possible to knit this design in DBJ with the same separation as for knitting it as a maze, both are 2 color slip stitch patterns, the maze separation is less laborious. To process for use in DBJ, the image needs initially to be doubled in length. The easiest way to achieve this is to create a new gimp document, several times the size of the repeat, select and copy the corrected repeat , in turn pasting it in the new, larger canvas. I used 40 by 60; color 1 is red, color 2, white, most of my charting is done at 1,000 times magnification

copy and paste

drawing a vertical line in non pertinent color to border areas having several rows with no second color present, as seen below, may help define end or start of selections when attempting to invert colors. Color invert may be achieved in RGB mode, not indexed. Below the inversion occurs on “even numbered” every other rows. The program in my OS now showed the previously red squares in blue, the alternate squares in black.

After using color invert, non pertinent color (blue) may be erased (using pencil tool, each square on grid is a single pixel) as well as those yellow “border” squares. In the image below the black squares on the left represent all holes that will be punched out in card. One drawback in this program, because of the scale using single pixels, is that no text to include row numbers, etc. is possible. The final repeat is 10S X 44 R.

If one wants to avoid using double length in the automated machine settings, the image of holes to be punched may be doubled in length. To do so color mode needs to be changed to indexed (4 colors) to retain image clarity.screenshot_19


 fabric knit in DBJ, long stitch on left, bird’s eye backing on right 500_2355

Maze and mosaic knitting, my previous posts: drawing motifs, from design to pattern (Excel), from pre punched cards,  and references and pubs. The repeat worked out for slip stitch, and edited down to 2 colors. Again, the black squares on the left represent all holes that will be punched out in card.

screenshot_21-mazeTo further mark the repeats in blocks, making chart easier to follow in absence of numbers, the subject of drawing straight lines comes up. Most of the online tutorials for using gimp are for its Windows version. The pencil tool may be used. Normally, tool options are displayed in a window attached under the Toolbox as soon as you activate a tool. If they are not (Mac), you can access them from the image menu bar through Windows → Dockable Windows → Tool Options, which opens the option window of the selected tool. In theory “Ctrl:This key changes the pencil to a Color PickerShift: This key places the pencil tool into straight line mode. Holding Shift while clicking Button 1 will generate a straight line. Consecutive clicks will continue drawing straight lines that originate from the end of the last line.” On my Mac I worked out this method: first select color and pencil tool. Place a pencil dot where you want the line to start. If you press the shift key, a cross hair will appear, press the command key in turn as well for straight line mode, click where you want the line to end. Consecutive clicks will continue drawing straight lines that originate from the end of the last line. Pressing both the shift and the command one at once after the initial pencil mark will call up the color picker and require a color selection and an OK.

windows: dockable itemswindows_dockable dialogues

gimp lines

separation for maze knitting 10S X 22R, elongate X2
maze_needsX2 borderknit as a single bed slip stitch, changing colors every 2 rowsscreenshot_01as dbj 500_2361

The dropped stitches were a problem when using the ribber on one of my two 910s, that adventure can be the topic for another post.

Working with generated mazes: GIMP charting 1

Laura Kroegler shares an online generator for “mosaics”unikatissima offers them for mazes and cellular automata. Representations of such patterns have cropped up in relation to hacked knitting machines and electronic downloads such as those seen in the Claire Williams blog, and in published information by Fabienne, who of late also has a kickstarter project. Such patterns may be charted for hand knitting or for use on punchcard machines once the size of the repeat is taken into consideration. Mirroring either vertically or horizontally can make the image far more interesting, but that has to be a consideration in planning if the stitch repeat has a constraint of 24 stitch limit. A beginning unit 6 stitches wide will allow for the horizontal mirror to be repeated twice on the punchcard. The minimum punchcard length is 36 rows. The maximum scroll down to height in the Kroegler generator is 20, so for the least punching, an 18 row max would “fit”. The caveat here is that if the generated pattern is to be knit as DBJ or as single bed slip stitch, those 18 rows need to be color separated accordingly. For the design to be charted out easily, it may be saved, and then in turn gridded in Photoshop or Gimp with grid matching stitch size in the generated pattern preview (ie below note X and Y values are 5 X 5, so grid used would be 5 X 5 pixels as well).
After reviewing the tiled generated pattern, the image may be carefully captured from screen and saved. I worked with an 8 stitch repeat for my tests. Below are screen grabs of the resulting patterns after some of the various options offered were tried. Mirroring this repeat horizontally, makes it too wide for a punchcard (16 X 2=32).






using a 5X5 grid after capturing a portion of another generated image, using a simple 8X8 repeat, outlining single repeats, thinking punchcard machinescreenshot_34

checking the result tiled to predict possible knit “look”screenshot_28

If working with a 6 stitch repeat, horizontal mirroring becomes possible for punchcard machines, perhaps making things more interesting; the program can generate a single repeat as a png, and punching holes is a drag so maybe length remains on the short side in anticipation of the punching holes and color separating for knitting the motif as either DBJ or single bed slip stitch, so here goes: having the generated image produced so each stitch and row is represented by a single pixel allows one to work within any program preset to superimpose a 1X1 grid:screenshot_07

screenshot_08my saved png, supposedly for an 8X12 repeatnewgridded in gimp, revealed as  11W X 23 Hscreenshot_09

testing tiling: oops!screenshot_10

the trimmed repeat, eliminating double lines, 10 St W X 22 Rows Hcropped

tiled, looking closer to originalcropped_tiled

and then there is the knitting of it….

For the latest version of gimp use on Mac, version history may be found at gimp website, for Mac Yosemite and Mavericks’ latest information on version 2.8.14 .