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

18 Nov, 2024 11:24 PM
18 Nov, 2024 09:01 PM
07 Nov, 2024 10:53 AM
02 Nov, 2024 11:22 AM
01 Nov, 2024 12:41 AM

 

01 Oct, 2024 07:59 AM
30 Sep, 2024 11:37 PM
30 Sep, 2024 11:11 AM
30 Sep, 2024 02:37 AM
28 Sep, 2024 10:33 AM
26 Sep, 2024 06:41 AM