knit one, compute one - yow! 2016
Post on 07-Jan-2017
169 Views
Preview:
TRANSCRIPT
PHOTO: LISA COCKBURN
KNIT ONE COMPUTE ONE
Kris Howard @web_goddess YOW! Sydney 2016
ENCRYPTION
for i in [1..5] if i % 15 is 0 console.log "FizzBuzz" else if i % 3 is 0 console.log "Fizz" else if i % 5 is 0 console.log "Buzz" else console.log i
1 2 FIZZ 4 BUZZ
Worked over a multiple of 24 stitches.
Row 1 (RS): Knit Row 2: Purl Row 3: *(k2tog) 4 times, (yo, k1) 8 times, (k2tog) 4 times; rep from * to end. Row 4: Purl
Repeat rows 1-4 until desired length.
FEATHER & FAN STITCH
Programming Knitting
Programming Knitting
Programming Knitting
Me
“DECODER HAT” BY ZABET STEWART
“THE VIRAL KNITTING PROJECT"
RAVELRY: CYNFLICKR: DEVABURGER
“M
OR
SE
CO
DE” BY KATE ATHERLEY
Letters converted to base 6, graphed, and mirrored
“PEACE” BY NAOMI PARKHURST
“ BR
AI L
LE
SO
CK
S” B
Y J
ES
SI C
A L
AN
DE
RS
“SCOREBOARD” BY MICHELLE HUNTER
FLICKR: TONY & WAYNE
Cast on 24 stitches.
FOR LOOP
let stitchCount = 24;
for (let i = 0; i < stitchCount; i++) { stitch.castOn() }
let stitchCount = 24;
for (let i = 0; i < stitchCount; i++) { stitch.castOn() }
let stitchCount = 24;
for (let i = 0; i < stitchCount; i++) { stitch.castOn() }
K2 P2
for (let i = 0; i < 2; i++) { stitch.knit() }
for (let i = 0; i < 2; i++) { stitch.purl(): }
for (let i = 0; i < 2; i++) { stitch.knit() }
for (let i = 0; i < 2; i++) { stitch.purl(): }
for (let i = 0; i < 2; i++) { stitch.knit() }
for (let i = 0; i < 2; i++) { stitch.purl(): }
Repeat rows 1 – 4 ten times.
for (let i = 0; i < 10; i++) { nextRow.row1(); nextRow.row2(); nextRow.row3(); nextRow.row4(); }
for (let i = 0; i < 10; i++) { nextRow.row1(); nextRow.row2(); nextRow.row3(); nextRow.row4(); }
for (let i = 0; i < 10; i++) { nextRow.row1(); nextRow.row2(); nextRow.row3(); nextRow.row4(); }
for (let i = 0; i < 10; i++) { nextRow.row1(); nextRow.row2(); nextRow.row3(); nextRow.row4(); }
for (let i = 0; i < 10; i++) { nextRow.row1(); nextRow.row2(); nextRow.row3(); nextRow.row4(); }
for (let i = 0; i < 10; i++) { nextRow.row1(); nextRow.row2(); nextRow.row3(); nextRow.row4(); }
Repeat to end of row.
WHILE LOOP
while ( !thisrow.atEnd() ) { stitch.knit(); }
while ( !thisrow.atEnd() ) { stitch.knit(); }
while ( !thisrow.atEnd() ) { stitch.knit(); }
Repeat rows 1-4 until scarf is 80in long or
desired length.
let desiredLength = 80;
while ( scarf.length < desiredLength ) { nextRow.row1(); nextRow.row2(); nextRow.row3(); nextRow.row4(); }
let desiredLength = 80;
while ( scarf.length < desiredLength ) { nextRow.row1(); nextRow.row2(); nextRow.row3(); nextRow.row4(); }
let desiredLength = 80;
while ( scarf.length < desiredLength ) { nextRow.row1(); nextRow.row2(); nextRow.row3(); nextRow.row4(); }
let desiredLength = 80;
while ( scarf.length < desiredLength ) { nextRow.row1(); nextRow.row2(); nextRow.row3(); nextRow.row4(); }
let desiredLength = 80;
while ( scarf.length < desiredLength ) { nextRow.row1(); nextRow.row2(); nextRow.row3(); nextRow.row4(); }
let desiredLength = 80;
while ( scarf.length < desiredLength ) { nextRow.row1(); nextRow.row2(); nextRow.row3(); nextRow.row4(); }
let desiredLength = 80;
while ( scarf.length < desiredLength ) { nextRow.row1(); nextRow.row2(); nextRow.row3(); nextRow.row4(); }
Row 3: *(k2tog) 4 times, (yo, k1) 8 times, (k2tog) 4 times; rep from * to end.
while ( !thisRow.atEnd() ) { stitch.k2tog(4); for (let i = 0; i < 8, i++) { stitch.yo(); stitch.knit(); } stitch.k2tog(4); }
while ( !thisRow.atEnd() ) { stitch.k2tog(4); for (let i = 0; i < 8, i++) { stitch.yo(); stitch.knit(); } stitch.k2tog(4); }
while ( !thisRow.atEnd() ) { stitch.k2tog(4); for (let i = 0; i < 8, i++) { stitch.yo(); stitch.knit(); } stitch.k2tog(4); }
while ( !thisRow.atEnd() ) { stitch.k2tog(4); for (let i = 0; i < 8, i++) { stitch.yo(); stitch.knit(); } stitch.k2tog(4); }
while ( !thisRow.atEnd() ) { stitch.k2tog(4); for (let i = 0; i < 8, i++) { stitch.yo(); stitch.knit(); } stitch.k2tog(4); }
Cast on 242 (256, 270, 284) sts.
SWITCH STATEMENT
let size = 38;
switch (size) { case 38: stitch.castOn(242); case 41: stitch.castOn(256); case 43: stitch.castOn(270); case 45: stitch.castOn(284); }
let size = 38;
switch (size) { case 38: stitch.castOn(242); case 41: stitch.castOn(256); case 43: stitch.castOn(270); case 45: stitch.castOn(284); }
let size = 38;
switch (size) { case 38: stitch.castOn(242); case 41: stitch.castOn(256); case 43: stitch.castOn(270); case 45: stitch.castOn(284); }
SUBROUTINES
function twistedRib(stitchCount) { //row 1 stitch.purl(); stitch.knit(); for (let i = 3; i < stitchCount; i++) { stitch.ptbl(); stitch.knit(); } stitch.purl(); needles.swap(); // row 2 stitch.knit(); stitch.purl(); for (let i = 3; i < stitchCount; i++) { stitch.ktbl(); stitch.purl(); } stitch.knit(); needles.swap(); }
function twistedRib(stitchCount) { //row 1 stitch.purl(); stitch.knit(); for (let i = 3; i < stitchCount; i++) { stitch.ptbl(); stitch.knit(); } stitch.purl(); needles.swap(); // row 2 stitch.knit(); stitch.purl(); for (let i = 3; i < stitchCount; i++) { stitch.ktbl(); stitch.purl(); } stitch.knit(); needles.swap(); }
function twistedRib(stitchCount) { //row 1 stitch.purl(); stitch.knit(); for (let i = 3; i < stitchCount; i++) { stitch.ptbl(); stitch.knit(); } stitch.purl(); needles.swap(); // row 2 stitch.knit(); stitch.purl(); for (let i = 3; i < stitchCount; i++) { stitch.ktbl(); stitch.purl(); } stitch.knit(); needles.swap(); }
function twistedRib(stitchCount) { //row 1 stitch.purl(); stitch.knit(); for (let i = 3; i < stitchCount; i++) { stitch.ptbl(); stitch.knit(); } stitch.purl(); needles.swap(); // row 2 stitch.knit(); stitch.purl(); for (let i = 3; i < stitchCount; i++) { stitch.ktbl(); stitch.purl(); } stitch.knit(); needles.swap(); }
function twistedRib(stitchCount) { //row 1 stitch.purl(); stitch.knit(); for (let i = 3; i < stitchCount; i++) { stitch.ptbl(); stitch.knit(); } stitch.purl(); needles.swap(); // row 2 stitch.knit(); stitch.purl(); for (let i = 3; i < stitchCount; i++) { stitch.ktbl(); stitch.purl(); } stitch.knit(); needles.swap(); }
COROUTINES
Row 1: Side,O,*D,C,F,X,F,O,F,X*,
D,B,D,A,E,B,E,**X,F,O,F,X,F,X,E**,
O,Side,O,rep from * to * once,
pm,F,O,F,X,F,C,F,W,F,O,F,pm,
rep from ** to ** once, O.
PATTERN LANGUAGES
Rows 1 and 3 (WS): Purl.
Row 2: K1, *k2tog, k2, yo, k1,
yo, k2, ssk, repeat from *.
Row 4: *K2tog, k2, yo, k1, yo,
k2, ssk, repeat from * to last
st, k1.
<pattern:pattern xmlns:pattern="http://www.knitml.com/schema/pattern" xmlns="http://www.knitml.com/schema/operations" xmlns:common="http://www.knitml.com/schema/common" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.knitml.com/schema/pattern http://www.knitml.com/schema/pattern-0.7.xsd http://www.knitml.com/schema/operations http://www.knitml.com/schema/operations-0.7.xsd http://www.knitml.com/schema/common http://www.knitml.com/schema/common-0.7.xsd" version="0.7" xml:lang="en"> <pattern:directives> <pattern:instruction-definitions> <inline-instruction id="cross-2-over-2" label="2/2 LC"> <cross-stitches first="2" next="2" type="front" /> <knit>4</knit> </inline-instruction> <inline-instruction id="cross-2-behind-2" label="2/2 RC"> <cross-stitches first="2" next="2" type="back" /> <knit>4</knit> </inline-instruction> </pattern:instruction-definitions> </pattern:directives> <pattern:general-information> <pattern:name>Color Sampler Swatch</pattern:name> <pattern:description>A basic 2-color swatch sampler</pattern:description> <pattern:dimensions /> <pattern:gauge type="stockinette"> <pattern:stitch-gauge unit="st/in">5</pattern:stitch-gauge>
Pattern "en" { Directives { InstructionDefinitions { InlineInstruction 'cross-2-over-2' [label:"2/2 LC"] { cross 2 inFrontOf 2, k4 } InlineInstruction 'cross-2-behind-2' [label:"2/2 RC"] { cross 2 behind 2, k4 } } } GeneralInformation { Name: "Color Sampler Swatch" Description: "A basic 2-color swatch sampler" Dimensions Gauge 'stockinette' { StitchGauge: 5 stitchesPerInch RowGauge: 7 rowsPerInch } Techniques { Technique: "stranded knitting" Technique: "cabling"
KnittingEL
ANDREW SALOMONE PHOTO: BECKY STERN
KNITTING AS COMPUTATION
top related