Wednesday 22 April 2015

GPU accelerated CSS, Knitting: Double Moss Stitch, Granite Relief Stitch

1. Double Moss Stitch

Double moss stitch is a pattern on four rows on an even number of stitches.

  1. knit 1, purl 1 across row
  2. purl 1, knit 1
  3. purl 1, knit 1
  4. knit 1, purl 1

2. Granite Relief Stitch

Granite relief stitch is a knitting stitch consisting of four repeated rows on an even number of stitches. Let the number of stitches be 2n.

  1. knit (right side – 2n stitches)
  2. knit two together across the row (n stitches)
  3. knit into the front and back of the stitch (2n stitches)
  4. purl (2n stitches)

3. Using the GPU to accelerate CSS

The GPU can be used to remove jank in a webpage. Modern browsers use the GPU when a 3D transform is used so the browser. This can be used to trick the browser into using the GPU. See the Treehouse blog for more details.

No comments:

Post a Comment