diff --git a/posts/_posts/2012-6-25-fabric-intro-part-1.html b/posts/_posts/2012-6-25-fabric-intro-part-1.html index 21283022a..9a42ada5e 100644 --- a/posts/_posts/2012-6-25-fabric-intro-part-1.html +++ b/posts/_posts/2012-6-25-fabric-intro-part-1.html @@ -412,7 +412,7 @@

Paths

-

We're instantiation fabric.Path object, passing it a string of path instructions. While it looks cryptic, it's actually easy to understand. “M” represents “move” command, and tells that invisible pen to move to 0, 0 point. “L” stands for “line” and makes pen draw a line to 200, 100 point. Then, another “L” creates a line to 170, 200. Lastly, “z” tells forces drawing pen to close current path and finalize the shape. As a result, we get a triangular shape.

+

We're instantiating fabric.Path object, passing it a string of path instructions. While it looks cryptic, it's actually easy to understand. “M” represents “move” command, and tells that invisible pen to move to 0, 0 point. “L” stands for “line” and makes pen draw a line to 200, 100 point. Then, another “L” creates a line to 170, 200. Lastly, “z” tells forces drawing pen to close current path and finalize the shape. As a result, we get a triangular shape.

Since fabric.Path is just like any other object in Fabric, we were also able to change some of its properties. But we can modify it even more: