Navigation

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

    Topics created by snaders

    • snaders

      Possible fix for kerning with two different fontvariations(wght) for neighbouring letters??
      General Discussion • • snaders  

      9
      0
      Votes
      9
      Posts
      15
      Views

      frederik

      FYI: kerning over several variable settings does not work in Illustrator
    • snaders

      Get location of added letter to FormattedString
      General Discussion • • snaders  

      5
      0
      Votes
      5
      Posts
      18
      Views

      frederik

      indeed, letters are collected into glyph runs with the same drawing attributes, so if you change a thing (like fill color) then you will get a box for each letter. good luck!
    • 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.
    • snaders

      SOLVED Import python file.
      General Discussion • • snaders  

      10
      0
      Votes
      10
      Posts
      171
      Views

      snaders

      @gferreira said in Import python file.: but unless you are importing code Clear. I will look into JSON then. I only load some settings for size and speed and such. Thanks again.
    • snaders

      SOLVED Using global variables input
      General Discussion • drawbot as module user interaction variables drawbot package vanilla • • snaders  

      3
      0
      Votes
      3
      Posts
      152
      Views

      snaders

      Hello @gferreira, Thanks for the quick reply. I mistakenly thought vanilla just ment that it didn't have any 'addons'. Like vanilla JS... This makes a lot more sense, will look into that! Thanks a lot!
    • snaders

      UNSOLVED Drawbot freezes after running
      Bugs • • snaders  

      5
      0
      Votes
      5
      Posts
      824
      Views

      harbortype

      @frederik I am on Mojave (10.14.5). This is the crash report that comes up after I force quit Drawbot: https://www.dropbox.com/s/4b6gkksm1ti5rnv/Drawbot crash report.txt?dl=0 Not sure if there is another report somewhere else… One other thing I have noticed just now is that if I run the script above and then run a different script, Drawbot will freeze as well. The second script being one that I use daily with zero issues.
    • snaders

      SOLVED Add fontVariation to text drawn in bezierPath?
      General Discussion • bezierpath variable fonts • • snaders  

      6
      0
      Votes
      6
      Posts
      2002
      Views

      frederik

      super! really cool project!
    • snaders

      SOLVED Draw a letter within a viewbox
      General Discussion • bezierpath transformations • • snaders  

      5
      0
      Votes
      5
      Posts
      1088
      Views

      snaders

      @frederik Thanks. Will have a look which type gives the best result. To use the actual font sounds like a good choice though. In Processing (where I made this animation first) I used SVG, but mainly because it's almost impossible to work with type in Processing. Curious which one is faster also.
    • snaders

      UNSOLVED How to load and draw SVG files?
      General Discussion • svg • • snaders  

      5
      0
      Votes
      5
      Posts
      1292
      Views

      gferreira

      @snaders in DrawBot you don’t really resize an image, you change the scale at which it is drawn. (same logic as in Draw a letter within a viewbox) imgPath = 'https://i.ytimg.com/vi/oHg5SJYRHA0/hqdefault.jpg' # get image width & height imgWidth, imgHeight = imageSize(imgPath) # define box width & height boxWidth, boxHeight = 640, 640 # calculate scaling factors factorHeight = boxHeight / imgHeight factorWidth = boxWidth / imgWidth # draw scaled image with savedState(): scale(factorWidth, factorHeight) image(imgPath, (0, 0)) # draw box fill(None) stroke(1, 0, 0) strokeWidth(5) rect(0, 0, boxWidth, boxHeight)