Navigation

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

    • jansindl3r

      SOLVED Place stroke on a shape's contour, with no offset
      General Discussion • stroke clipping outline • 9 Sept 2019, 12:23 • jansindl3r   9 Sept 2019, 15:37

      2
      0
      Votes
      2
      Posts
      176
      Views

      gferreira 9 Sept 2019, 15:37

      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!
    • brintown

      SOLVED Masking
      General Discussion • clipping • 1 Mar 2019, 20:53 • brintown   5 Mar 2019, 21:57

      4
      0
      Votes
      4
      Posts
      522
      Views

      brintown 5 Mar 2019, 21:57

      thanks @frederik and @gferreira for the helpful hints!
    Drawing With Python