Fit True

john's Avatar

john

12 Mar, 2024 05:22 AM

Attached is ANOTHER new node: fit_true.

NodeBox has a problem with scaling. The scale node scales shapes, but does NOT scale stroke widths. So when you scale up a shape with a visible outline, the shape will get bigger but its outline will not, which can make it hard to see the outline.

I have already fixed this with my scale_true node (available for all in the Cartan Node Library). But the same problem rears its ugly head again when you use the fit node to resize a shape.

Hence my new fix: fit_true. Fit true works exactly like the fit node, but doesn't screw up the stroke widths.

The attached demo shows a 48-point gray 'a' character with a 1 point blue outline. I then resize it using a normal fit node on the left and my fit_true node on the right, resizing to fit into a 150 x 300 box.

You can see the results in the screenshot. Both characters are resized correctly but only the one on the right has the correct stroke width for the blue outline.

That's it. Simple, but very handy when you need it.

Reply to this discussion

Internal reply

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

Attaching KB article:

»

Already uploaded files

  • fit_true_screenshot.png 510 KB
  • fit_true_demo.ndbx.zip 5.03 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

23 Apr, 2024 07:54 PM
19 Apr, 2024 04:41 AM
16 Apr, 2024 06:18 PM
16 Apr, 2024 04:23 AM
08 Apr, 2024 01:28 AM

 

07 Apr, 2024 11:50 PM
05 Apr, 2024 11:47 PM
05 Apr, 2024 12:30 AM
25 Mar, 2024 08:48 PM
14 Mar, 2024 07:40 PM
14 Mar, 2024 07:38 PM