Part 1: Path2D Basics

Introduction

Cinder's Path2D API is one of Cinder's most powerful yet most underused utilities. This guide will walk through what a Path2D object is from the nuts and bolts and work through some of the more advanced functions. Each part has an interactive portion with code snippets that you can cut and paste into Cinder's draw function. You can use the templates and samples in this repo to get started.

Points and Segments

A Path2D instance is constructed of points and segments. A point refers to a 2D coordinate of where a line segment starts or ends as well as a coordinate of a handle that defines the curve of the path. A segment refers to the line segment as defined by the positions of the start/end points and handles. The types of segments are:

Part 2: Drawing Functions »