Understanding Shape JSON
This prototype is built to help Origami users understand how Origami Studio uses JSON to build shapes
Shape Selection
- simple straight line - shapes at their most basic
- compound path made of two straight lines - illustrating how "moveTo" functions to begin a new sub-path
- polygon from 3 to 8 sided - illustrating how each instruction builds on to the shape and the function of the "closePath" type
- curved line - showing how the "curveTo" type is accompanied by two additional keys "curveTo" and "curveFrom"
- rounded rectangle - showing how one of the standard shape types is made in JSON
- intersecting circles - showing the behavior when two paths overlap
- eye of providence - a modestly complex shape made of three subpaths
- skull and crossbones - a more complex shape containing ninety-some path instructions made of five subpaths
Array Index Selector
There are three ways to select and view an individual path array instruction
- directly selecting points in the shape preview on the left
- plus and minus buttons next to the Array Index below the shape preview
- selecting a list item in the JSON scroll on the right