Matching drawpath to cornu.path dimensions using

Lars's Avatar


23 Nov, 2012 10:40 AM

Hi there, first of all: i'm a newbie to NodeBox (and Python) ... here's what i'm trying to do:

  1. Draw a textpath via drawpath
  2. Modify point info from that path and draw it via cornu.path

Canvas size is 1024x1024 for example, fontsize 100, textpath x,y are 200.

How to calculate the corresponding values to match the drawpath result?

Thanks: Lars

  1. Support Staff 1 Posted by Frederik De Ble... on 26 Nov, 2012 09:05 AM

    Frederik De Bleser's Avatar


    I've looked at it and I couldn't find an easy way to match the original path and cornu path.

    You've probably already seen the Cornucopia example. Here's some code that might get you started:

    cornu = ximport("cornu")
    background(.5, .6, .5)
    pt = textpath("hello", 0,0)
    points = [[pt.x,pt.y] for pt in pt.points(200)]
    translate(35, 800)


  2. Frederik De Bleser closed this discussion on 26 Nov, 2012 09:05 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? 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


24 Apr, 2019 02:04 AM
31 Mar, 2019 10:32 AM
24 Mar, 2019 08:45 PM
24 Mar, 2019 12:07 AM
23 Mar, 2019 09:00 PM
22 Mar, 2019 06:37 AM