textmode.js / ShapeAssemblyMode
Enumeration: ShapeAssemblyMode
Shape assembly modes for Textmodifier.beginShape.
Enumeration Members
LINE_LOOP
LINE_LOOP: 3;Draw consecutive vertices as one connected closed loop.
Use this for orbit rings, cells, seals, and procedural outlines where the last vertex should connect back to the first.
Example
LINE_STRIP
LINE_STRIP: 2;Draw consecutive vertices as one connected open path.
Use this for trails, contours, oscillators, and continuous generative paths that should not automatically close.
Example
LINES
LINES: 1;Draw each pair of recorded vertices as an independent line segment.
Use this for disconnected strokes, hatching, radial spokes, and other geometry where every two vertices form a separate edge.
Example
POINTS
POINTS: 0;Draw each recorded vertex as a separate point.
Use this for particle fields, sampled paths, and other custom shapes where every vertex is an independent mark.
Example
QUAD_STRIP
QUAD_STRIP: 8;Draw paired vertices as a connected strip of quads.
Use this for woven bands, thick paths, and flexible ribbons where each pair of vertices extends the next four-sided segment.
Example
QUADS
QUADS: 7;Draw each group of four vertices as a quad split into two triangles.
Use this for tiled panels, procedural cells, and blocky surfaces where every four vertices define a separate four-sided patch.
Example
TRIANGLE_FAN
TRIANGLE_FAN: 6;Draw triangles that all share the first recorded vertex.
Use this for fans, wedges, circular bursts, and filled radial forms expanding from a shared center.
Example
TRIANGLE_STRIP
TRIANGLE_STRIP: 5;Draw overlapping triplets of vertices as a connected triangle strip.
Use this for ribbons, folded bands, and efficient connected surfaces built from a single alternating vertex sequence.
Example
TRIANGLES
TRIANGLES: 4;Draw each group of three vertices as an independent triangle.
Use this for faceted fields, low-poly shards, and filled geometry where each triangle controls its own three corners.