Fancy Star Node

john's Avatar

john

20 Feb, 2023 03:23 AM

Attached is a new node, fancy_star. It makes it easy to create well-balanced stars with several coloring options.

Of course Nodebox already has a star node which takes an inner and outer radius. This allows a wide variety of stars, but in order to create the perfect stars you usually want, you need to calculate an exact value for that inner radius - which can require a surprising amount of math.

Fancy_star solves this problem. Just enter an outer radius and number of points and it automatically creates the balanced star you probably want. The stars always start with their easternmost tip on the X axis (the beginning of its outer radius), but if you need the star to tilt a little to line up with the Y axis, just check the align checkbox.

In addition, Fancy_star has three drawing modes:

  • Simple draws a single clockwise path that you can then fill or stroke.
  • Tips creates a group of shapes: the inner star and a separate triangle or kite shape for each tip. You can then ungroup this and color the inside and the tips separately, an effect commonly seen in quilts, geometric tessellations, Islamic art, etc.
  • Two Tone creates a set of split tips with no center which you can then color to produce a 3D two tone effect.

The attached demo shows seven examples and how to color them (see screenshot). Fancy_star is remarkably quick and easy to use. You can even use it to create a compass rose in under a minute.

Fancy_star will be included in the next rev of the Cartan Node Library and, as always, is free to use.

Enjoy!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • fancy_star_screenshot.png 513 KB
  • fancy_star_demo.ndbx.zip 93.9 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

19 Jun, 2024 12:57 PM
19 Jun, 2024 09:35 AM
15 Jun, 2024 01:44 PM
08 Jun, 2024 09:05 AM
08 Jun, 2024 09:00 AM