Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Solved
    • Unsolved
    • Search
    1. Home
    2. Tags
    3. stroke
    Log in to post

    • jansindl3r

      SOLVED Place stroke on a shape's contour, with no offset
      General Discussion • stroke clipping outline • • jansindl3r  

      2
      0
      Votes
      2
      Posts
      176
      Views

      gferreira

      hello @jansindl3r, you can use the contours of the letters as a clipping mask, so the outside half of the stroke is not visible: size(2000, 1000) stroke(1, 0, 0) strokeWidth(30) B = BezierPath() B.text('a', (110, 130), fontSize=1400) # clip external stroke with savedState(): clipPath(B) drawPath(B) # normal stroke translate(1000, 0) drawPath(B) cheers!
    • MauriceMeilleur

      SOLVED Treat open BezierPaths like lines; expanding appearance?
      Feature Requests • bezierpath stroke cap join line • • MauriceMeilleur  

      3
      0
      Votes
      3
      Posts
      1045
      Views

      MauriceMeilleur

      @frederik Stupid beginner question: where would I find the existing code on my machine that you've fixed here? I want to manually edit the file to take advantage of your improvement until you push the next version of DB …
    • MauriceMeilleur

      SOLVED A deeper bevel on lineJoin()?
      General Discussion • recreations trigonometry stroke outline • • MauriceMeilleur  

      17
      0
      Votes
      17
      Posts
      3311
      Views

      MauriceMeilleur

      The last thing will be to provide for the case where the points are in a continuous chain, like the <o>. I'm pretty sure I know what to do, and it shouldn't be that hard, but I have some other problems with the Crouwel code to fix first (all to do with graphing and finding valid paths—this whole project is forcing me to teach myself the basics of computer science as I go). I'll post the revised and extended code here when it's done.