Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Solved
    • Unsolved
    • Search
    1. Home
    2. Hugo Jourdan
    3. Best
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by Hugo Jourdan

    • RE: DrawBot Auto-completion Snippet

      I just updated the repo with separated snippets for SublimeText.

      posted in Code snippets
      Hugo Jourdan
      Hugo Jourdan
    • Rounded Rectangle

      Snippet do draw rectangle with rounded corner:

      def rectRounded(x,y,w,h,radius):
          path = BezierPath()
          sR=0.5*radius
          w=w-radius
          h=h-radius
          path.rect(x,y+sR,w+radius,h)
          path.rect(x+sR,y,w,h+radius)
          path.oval(x,y,radius,radius)
          path.oval(x+w,y,radius,radius)
          path.oval(x,y+h,radius,radius)
          path.oval(x+w,y+h,radius,radius)
          path.removeOverlap()
          drawPath(path)
      

      It is possible to manually add it in drawBot module ?

      posted in Code snippets
      Hugo Jourdan
      Hugo Jourdan