Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Solved
    • Unsolved
    • Search
    1. Home
    2. Recent
    Log in to post
    • All categories
    • Announcements
    • General Discussion
    • Tutorials
    • Code snippets
    • Feature Requests
    • Bugs
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • eduairet

      Loop image generation breaks at index 16
      General Discussion • batch csv custom postcards txt • • eduairet  

      4
      0
      Votes
      4
      Posts
      27
      Views

      eduairet

      @frederik OMG it works now!!! thank you very much!!!! Happy holidays!!!
    • djrrb

      SOLVED Built-in interpolation functions
      Feature Requests • interpolation • • djrrb  

      3
      0
      Votes
      3
      Posts
      37
      Views

      djrrb

      @frederik done! https://github.com/typemytype/drawbot/issues/414
    • frankrolf

      UNSOLVED Markdown syntax for FormattedString?
      Feature Requests • • frankrolf  

      6
      0
      Votes
      6
      Posts
      46
      Views

      djrrb

      @gferreira said in Markdown syntax for FormattedString?: markdown==3.2.2 Thanks so much Gustavo!
    • snaders

      SOLVED Reading pixel values (rgb or brightness) on coordinations
      General Discussion • image color • • snaders  

      3
      0
      Votes
      3
      Posts
      17
      Views

      snaders

      Thanks @gferreira, I somehow completely missed that when going through the documentation. That's exactly what I need haha. I only have to go through through a single line of pixels, so hopefully the speed won't matter that much.
    • eduairet

      UNSOLVED access a specific frame from a gif
      General Discussion • • eduairet  

      7
      0
      Votes
      7
      Posts
      52
      Views

      eduairet

      This is an old post but this might help someone looking for iteration on gifs, and maybe anyone can tell an interesting fact about it. I've been working with gifs generated via Photoshop and Media Encoder and they crash after the second frame. What has worked for me to fix this problem is to open the gif file with the Mac OS Preview app and rewrite the file, even though this solved my problem it could be great to know if you had a similar experience and how you solved it.
    • Juan

      2D 5-Neighbor Cellular Automata
      Code snippets • • Juan  

      4
      0
      Votes
      4
      Posts
      36
      Views

      jo

      i would leave the center or starting point at (0, 0) and shift the origin with translate(canvas/2, canvas/2). If cell at (n, n) is positive add (n, n), (-n, n), (n, -n), (-n, -n) to the list or dict of active cells. hmmhmh not sure if that makes sense. for x in range(cell_amount): for y in range(cell_amount): if (x, y): #check if cell is active here grid[( x, y)] == 1 grid[(-x, y)] == 1 grid[( x, -y)] == 1 grid[(-x, -y)] == 1 hope that makes sense. good luck!
    • mït

      SOLVED Different fonts in a text box
      General Discussion • text text formatting • • mït  

      9
      0
      Votes
      9
      Posts
      71
      Views

      mït

      Hello, @gferreira! I had thought about working word for word ... I didn’t know if it was a good idea ... but it’s really interesting what you coded! I wouldn't have found it alone! thanks! I guess this way the text would never be justified ... but it will be very useful for me! thanks!
    • guidoferreyra

      SOLVED Turn off kerning
      General Discussion • opentype features kerning • • guidoferreyra  

      3
      0
      Votes
      3
      Posts
      20
      Views

      guidoferreyra

      Of course! Thanks a lot!
    • ricardov

      SOLVED newDrawing() size?
      General Discussion • • ricardov  

      4
      0
      Votes
      4
      Posts
      28
      Views

      ricardov

      Thanks @imik and @frederik tested and it worked! Im creating a set of 300 different covers for different reports based on data, and goes super fine. Best for all! R
    • eduairet

      SOLVED Pixelating a Bezier Path
      General Discussion • • eduairet  

      6
      0
      Votes
      6
      Posts
      43
      Views

      eduairet

      @frederik thank you It worked great now: x, y = 500, 500 resolutions = [72, 18] mfont = '/Library/Application Support/Adobe/Fonts/SansNom-Regular.otf' installFont(mfont) font(mfont) print(listFontGlyphNames()) letters = ['n', 'E'] def pixelar(tx, t, al=True): newPage(x, y) path = BezierPath() path.text(tx, fontSize=500, font=mfont) coords = path.bounds() translate((x - (coords[0] + coords[2])) * 0.5, (y - (coords[1] + coords[3])) * 0.5) drawPath(path) saveImage('~/Desktop/hint_{0}_{1}_aal_{2}.png'.format(tx, t, str(al).lower()), imageResolution=int(t), antiAliasing = al) newDrawing() for letter in letters: for resolution in resolutions: pixelar(letter, resolution, False) pixelar(letter, resolution)
    • eduairet

      Unknown Pleasures Tutorial
      Tutorials • • eduairet  

      5
      1
      Votes
      5
      Posts
      71
      Views

      eduairet

      @jo Thank you, I was disconnected from Drawbot so I haven't seen this, I'll try your suggestions on the code
    • MauriceMeilleur

      SOLVED Gaussian blur moves object when applied in different places in the code?
      Bugs • • MauriceMeilleur  

      2
      0
      Votes
      2
      Posts
      19
      Views

      frederik

      not really a bug: when applying a blur the images gets bigger, check with im.size() before and after the blur is applied. im.offset() is providing you the correct x, y difference.
    • ChrisSwift

      SOLVED drawBot.misc.DrawBotError: No image found at http:...
      Bugs • image • • ChrisSwift  

      8
      0
      Votes
      8
      Posts
      395
      Views

      MauriceMeilleur

      @frederik https://www.drawbot.com/_/downloads/en/stable/pdf/, and my bad: I was using an old version of the documentation (3.121). I see the 3.126 version has a working URL. (The line break is breaking the link in the pdf, though.)
    • imik

      UNSOLVED Context leak detected — some help?
      Code snippets • image object • • imik  

      4
      0
      Votes
      4
      Posts
      30
      Views

      frederik

      try to do saveImage outside the loop with the option multiPage set to True. saveImage(f"~/Desktop/test/issueContextLeak/RotatingImage.png", multipage=True) Somehow your image object got lost in between saveImage actions... see saveImage options: https://www.drawbot.com/content/canvas/saveImage.html#drawBot.saveImage
    • MauriceMeilleur

      SOLVED Why would I declare a newPath() as opposed to defining a BezierPath() with a variable name?
      General Discussion • • MauriceMeilleur  

      3
      0
      Votes
      3
      Posts
      18
      Views

      MauriceMeilleur

      That's what I suspected. It seemed like the kind of question students would ask and I wanted to make sure the answer I gave was the right one. Thanks, Frederik.
    • SCarewe

      SOLVED Remove overlap on variable font
      General Discussion • • SCarewe  

      7
      0
      Votes
      7
      Posts
      33
      Views

      frederik

      you can slice a formattedString and keep the formatting: txt = FormattedString() txt += "hello World" sub = txt[0:5] print(sub)
    • c6y

      SOLVED Turn off antialiasing?
      General Discussion • • c6y  

      7
      0
      Votes
      7
      Posts
      35
      Views

      frederik

      Added in DrawBot 3.126 thanks!
    • Christine

      SOLVED UI with update-Function?
      General Discussion • variables interface • • Christine  

      7
      0
      Votes
      7
      Posts
      45
      Views

      frederik

      DrawBot 3.126 has a continuous flag in Variable that adds a Update button good luck!
    • sean

      UNSOLVED Forcing update with a function? (for previewing animation)
      Feature Requests • • sean  

      4
      0
      Votes
      4
      Posts
      19
      Views

      sean

      Thank you! This is very helpful. I will look into nsview and looping over the pages.
    • erik

      Use drawbot to make a Teams background
      Code snippets • background microsoft teams videoconference • • erik  

      1
      3
      Votes
      1
      Posts
      32
      Views

      No one has replied