Rectangle shape options object that extends OBJ_Generic (without `drawType) and OBJ_FigurePrimitive
To test examples, append them to the boilerplate
// Filled rectanglefigure.add({ name: 'r', make: 'rectangle', width: 1, height: 0.5,}); Copy
// Filled rectanglefigure.add({ name: 'r', make: 'rectangle', width: 1, height: 0.5,});
// Corners with radius and dashed linefigure.add({ name: 'r', make: 'rectangle', width: 0.5, height: 0.5, line: { width: 0.02, dash: [0.05, 0.03] }, corner: { radius: 0.1, sides: 10, },}); Copy
// Corners with radius and dashed linefigure.add({ name: 'r', make: 'rectangle', width: 0.5, height: 0.5, line: { width: 0.02, dash: [0.05, 0.03] }, corner: { radius: 0.1, sides: 10, },});
// Rectangle copies rotatedfigure.add({ name: 'r', make: 'rectangle', width: 0.5, height: 0.5, line: { width: 0.01, }, copy: { along: 'rotation', num: 3, step: Math.PI / 2 / 3 },});@interface Copy
// Rectangle copies rotatedfigure.add({ name: 'r', make: 'rectangle', width: 0.5, height: 0.5, line: { width: 0.01, }, copy: { along: 'rotation', num: 3, step: Math.PI / 2 / 3 },});@interface
Rectangle shape options object that extends OBJ_Generic (without `drawType) and OBJ_FigurePrimitive
See
To test examples, append them to the boilerplate
Example
Example
Example