Star options object that extends OBJ_Generic (without drawType) and OBJ_FigurePrimitive
drawType
To test examples, append them to the boilerplate
// Simple 5 pointed starfigure.add({ name: 's', make: 'star', radius: 0.5, sides: 5,}); Copy
// Simple 5 pointed starfigure.add({ name: 's', make: 'star', radius: 0.5, sides: 5,});
// 7 pointed dashed line starfigure.add({ name: 's', make: 'star', radius: 0.5, innerRadius: 0.3, sides: 7, line: { width: 0.02, dash: [0.05, 0.01], },}); Copy
// 7 pointed dashed line starfigure.add({ name: 's', make: 'star', radius: 0.5, innerRadius: 0.3, sides: 7, line: { width: 0.02, dash: [0.05, 0.01], },});
// Star surrounded by starsfigure.add({ name: 's', make: 'star', radius: 0.1, sides: 5, rotation: -Math.PI / 2, // line: { width: 0.01 }, copy: [ { to: [0.6, 0], original: false, }, { along: 'rotation', num: 16, step: Math.PI * 2 / 16, start: 1, }, { to: new Fig.Transform().scale(3, 3).rotate(Math.PI / 2), start: 0, end: 1, }, ],});@interface Copy
// Star surrounded by starsfigure.add({ name: 's', make: 'star', radius: 0.1, sides: 5, rotation: -Math.PI / 2, // line: { width: 0.01 }, copy: [ { to: [0.6, 0], original: false, }, { along: 'rotation', num: 16, step: Math.PI * 2 / 16, start: 1, }, { to: new Fig.Transform().scale(3, 3).rotate(Math.PI / 2), start: 0, end: 1, }, ],});@interface
Star options object that extends OBJ_Generic (without
drawType) and OBJ_FigurePrimitiveSee
To test examples, append them to the boilerplate
Example
Example
Example