The Colorization of Knit Visualizer (or a scary peek into the mind of a software developer)

Knitting? What’s that?

I have had a serious lack of knitting time these days.  One of the main reasons is that I’ve been spending most of my free time on Knit Visualizer 2.0.  Specifically adding color to Knit Visualizer.  (I did also manage to spin 2 yards of yarn today., cook a fabulous prime rib, made-from-scratch dinner rolls, pumpkin pie and a few other dinner items for the holiday)

Here’s a sample of what a color Knit Visualizer chart could look like:

Multicolorchartpng_1

Now this is a silly chart. But it shows you several things. Color borders! (you can have many different color borders in the same chart. not shown here). You can have color on both the foreground (text, aka symbols), and/or the background of cells.  When you generate the Legend, you have options to include Colors into the legend.

When you tell KV that color should be included in the legend (which it is by default), it then thinks that each combintation of symbol + text color + background color are separate symbols.  If you only want to see symbol colors in the legend, it will only find unique instances of symbol + text color.  (So in the above example, the second bobble with the purple background wouldn’t be included).

Why would you want to do this? Imagine if you used the diamond symbol in blue and green. you might want to indicate to your knitters that the blue one is different than the red one.  In theory (and probably reality) all diamonds would be one color in the foreground. If you accidentaly had a blue one, then a look at the legend would immmiately show you something was out of whack.

The legend will ignore background color if you want it to because some people want to stripe the background of every other row a different color. That doesn’t have any meaning in how you knit the stithces, it’s just good for keeping track of where you are (of course everyone should have Highlighter Tape!)

So I’m mostly done with color.  There are some minor things to do, like finish the ability to paint JUST the background color onto the chart (leaving symbol, symbol color, borders and border color all alone).  I’m leaning towards doing symbol color at the same time you paint a symbol. If you wanted to change the color associated with a symbol, you’d basically have to repaint the symbol with the new color chosen.  This strikes me as a sort of pain in the butt; but now that the display and storage of color options is set, I can play around with how the tools behave a little bit easier.

Other stuff: being able to select a color already in use on a border, symbol or background so you can continue using it.  Changing the selection so that you can still see the colors in use, but also tell that you’ve got a selection.   I haven’t even started on the code to define your own symbols (unless you count adding a few menus that don’t do anything), although I’ve worked through a lot of use cases, postulating and bugging my friends  & about how they think it should work.

Some other stuff I’ve added  along the way - all your selections in the preview window are now saved even when you quit Knit Visualizer. If you turn off the Pattern text, it will still be turned off the next time you run Knit Visualizer, until you click the radio button to show it again.

4 Comments »

  1. trish said,

    November 24th, 2006 at 4:56 am

    How exciting! And it looks like you are building in a lot of flexibility, which is great. Having the selections in the preview saved will be wonderful too.

    Trish

    a KV user

  2. kimbelina said,

    November 24th, 2006 at 5:42 am

    Wow! Very cool — I’ve been extremely pleased with KV thus far but am even more excited about the upcoming release. Can’t wait!

  3. Isela said,

    November 24th, 2006 at 1:54 pm

    I am looking forward to the next release. It appears that many new exciting features have been included :).

  4. WonderMike said,

    November 7th, 2007 at 4:09 pm

    Whoa!!! I’m definitely getting it with Version 2.0. You sold me!!!!! Thanks for posting to the Yarn Harlot. Yippeeeeeee. And, how jazzed am I that you have it for the Mac. Bless you!

RSS feed for comments on this post

Post a Comment