Navigation

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

    Topics created by monomonnik

    • monomonnik

      Change the value of a bool with (arrow) keys
      Feature Requests • • monomonnik  

      4
      0
      Votes
      4
      Posts
      15
      Views

      monomonnik

      Thanks. Sorry, should have tried instead of thinking an omision in the documentation meant the functionality wasn't there.
    • monomonnik

      Round Corners
      Code snippets • • monomonnik  

      1
      2
      Votes
      1
      Posts
      21
      Views

      No one has replied

    • monomonnik

      donut
      Code snippets • • monomonnik  

      3
      1
      Votes
      3
      Posts
      47
      Views

      monomonnik

      @MauriceMeilleur An arbitrary amount of circles seemingly overlapping: import random number_of_circles = 10 radius = 100 wobble = 400 canvas_size = 1000 circles = [] drawn_circles = [] center = canvas_size / 2 # Create circles for i in range(number_of_circles): x = center - (wobble * 0.5) + random.random() * wobble y = center - (wobble * 0.5) + random.random() * wobble circle = BezierPath() circle.oval(x - radius, y - radius, radius * 2, radius * 2) circles.append(circle) # Check if circles overlap for circle in circles: for i in range(len(drawn_circles)): intersecting_shape = circle.intersection(circles[i]) if len(intersecting_shape.points) > 0: circle = circle.difference(circles[i]) drawn_circles.append(circle) # Draw circles, or what’s left of them newPage(canvas_size, canvas_size) fill(None) stroke(0) for circle in drawn_circles: drawPath(circle)
    • monomonnik

      SOLVED Add anchor points?
      General Discussion • bezierpath pens • • monomonnik  

      3
      0
      Votes
      3
      Posts
      34
      Views

      monomonnik

      @frederik You opened a door to a whole new world for me. This is much simpler than I thought. And at the same time, I think it’s going to take me some time to get my head around all this pen-stuff. Thanks!
    • monomonnik

      SOLVED Delay after drawing
      General Discussion • animation performance saving • • monomonnik  

      4
      0
      Votes
      4
      Posts
      24
      Views

      frederik

      DrawBot has an abstract stack of "actions" which can be applied on different contexts. One context is your output: an animated gif. And there is always a drawBot context to create the preview pdf data. Using drawBot from the module helps in this case as @gferreira suggested.