Navigation

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

    Tutorials

    • eduairet

      Gradient rings from Python for Designers tutorial
      gradient circles python for designers • • eduairet  

      3
      0
      Votes
      3
      Posts
      18
      Views

      eduairet

      @frederik thank you very much! I'll implement this way
    • vitorcarvalho

      Tutorial Request: Delay Animation
      • vitorcarvalho  

      7
      0
      Votes
      7
      Posts
      41
      Views

      eduairet

      @vitorcarvalho wow, this is lovely!!!
    • eduairet

      Unknown Pleasures Tutorial
      • eduairet  

      5
      1
      Votes
      5
      Posts
      60
      Views

      eduairet

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

      SOLVED Tutorial request: how to animate a variable font
      animation variable fonts • • Mattipa  

      28
      0
      Votes
      28
      Posts
      11618
      Views

      jo

      @hzinn not sure how best to improve this more frames and higher resolution might be a start and maybe adding a background.
    • eduairet

      SOLVED Making a loop to save multiple GIFs
      • eduairet  

      9
      0
      Votes
      9
      Posts
      135
      Views

      charlielemaignan

      Hello @frederik ! Thank you! it works for me May I add those few lines found on this other tutorial about "EaseInOut" function. def easeInOut(factor): assert 0 <= factor <= 1 return (1 - cos(factor * pi)) / 2 It will add a new graph with easeInOut. It is working well with your previous lines. Thank you for your help ! Be safe.
    • loweredcase

      SOLVED Tutorial Request : Test Install/Uninstall a .ttf
      • loweredcase  

      4
      0
      Votes
      4
      Posts
      159
      Views

      loweredcase

      @gferreira i didn't know you could specifiy path inside font() command. thank you -- this is exactly what i needed!
    • eduairet

      SOLVED Variable portrait
      variable fonts image • • eduairet  

      4
      0
      Votes
      4
      Posts
      250
      Views

      eduairet

      import string import random # path to the image path = u"https://yourimage.jpg" # get the size of the image print(imageSize("https://yourimage.jpg")) # w, h = imageSize(path) s = letter size w = 400 h = 400 s = 10 # Set the characters you need chars = 'HOLAhola' print (random.choice(chars)) # Get colors pix_cols = {} for x in range(0, w, s): for y in range(0, h, s): pix_cols[(x, y)] = imagePixelColor(path, (x, y)) # Variable font to use """ FontName wdth {'name': 'Width', 'minValue': 100.0, 'maxValue': 800.0, 'defaultValue': 100.0} wght {'name': 'Weight', 'minValue': 150.0, 'maxValue': 800.0, 'defaultValue': 150.0} slnt {'name': 'Slant', 'minValue': 0.0, 'maxValue': 14.0, 'defaultValue': 0.0} """ min_val_wdth = listFontVariations('FontName')['wdth']['minValue'] max_val_wdth = listFontVariations('FontName')['wdth']['maxValue'] min_val_wght = listFontVariations('FontName')['wght']['minValue'] max_val_wght = listFontVariations('FontName')['wght']['maxValue'] min_val_slnt = listFontVariations('FontName')['slnt']['minValue'] max_val_slnt = listFontVariations('FontName')['slnt']['maxValue'] def ranLetters(): # loop over the width of the image newPage(w, h) fill(1) rect(0, 0, w, h) for x in range(0, w, s): # loop of the height of the image for y in range(0, h, s): color = pix_cols[(x, y)] if color: txt = random.choice(chars) font("FontName") fontSize(s) fontVariations(wdth = randint(min_val_wdth, max_val_wdth), wght = randint(min_val_wght, max_val_wght)) r, g, b, a = color # set the color fill(r, g, b, a) # draw some text text(txt, (x, y), align='center') for i in range(5): ranLetters() saveImage("~/Desktop/name.gif", imageResolution=144)
    • eduairet

      SOLVED Radial animation
      animation • • eduairet  

      5
      0
      Votes
      5
      Posts
      454
      Views

      eduairet

      @gferreira wow, this is huge!!! thank you again
    • eduairet

      SOLVED Output text
      text formatting • • eduairet  

      9
      0
      Votes
      9
      Posts
      485
      Views

      eduairet

      @gferreira thanks, it worked, I'm coming with some new exercises. Cheers.
    • eduairet

      SOLVED Grid
      grid layout • • eduairet  

      3
      0
      Votes
      3
      Posts
      319
      Views

      eduairet

      @gferreira said in Grid: w = (width() - gutter * (cols + 1)) / cols h = (height() - gutter * (rows + 1)) / rows Thank you very much, it worked way much better, I also tried to add a margin feature that worked well so now I can design over the grid size(1000, 1000) cols = 3 rows = 3 gutter = 12 #Margin mTop = 10 - gutter mBottom = 20 - gutter mLeft = 10 - gutter mRight = 10 - gutter w = (width() - gutter * (cols + 1)) / cols - ((mRight + mLeft) / cols) h = (height() - gutter * (rows + 1)) / rows - ((mTop + mBottom) / rows) fill(None) strokeWidth(1) stroke(0, 1, 1) for col in range(cols): for row in range(rows): x = gutter + col * (w + gutter) y = gutter + row * (h + gutter) rect(x + mLeft, y + mBottom, w, h)
    • justvanrossum

      Python For Designers online book
      getting started • • justvanrossum  

      1
      2
      Votes
      1
      Posts
      497
      Views

      No one has replied

    • justvanrossum

      Here's a good tutorial for people just starting out with DrawBot
      getting started • • justvanrossum  

      1
      1
      Votes
      1
      Posts
      480
      Views

      No one has replied

    • robstenson

      Animation pipeline, from DrawBot to AfterEffects
      animation variable fonts • • robstenson  

      2
      1
      Votes
      2
      Posts
      716
      Views

      frederik

      The tutorial is awesome! Really cool to see the usage of DrawBot from the perspective of an animator!
    • justvanrossum

      Rotating arrows exercise
      recreations • • justvanrossum  

      1
      1
      Votes
      1
      Posts
      1673
      Views

      No one has replied

    • pixelman

      Combine words from different .txt files to create a new big text
      text • • pixelman  

      3
      0
      Votes
      3
      Posts
      873
      Views

      pixelman

      Hey gferreira, thankx we try to test it out tomorrow… many thanks!
    • jo

      Tutorial request: BezierPath() to pen
      bezierpath pens • • jo  

      8
      0
      Votes
      8
      Posts
      1913
      Views

      frederik

      found it back: this reminds me a thing I wrote some years ago
    • micahmicah

      Tutorial Request: drawing multi sided polygons w/ Bezier Curves
      bezierpath trigonometry • • micahmicah  

      4
      1
      Votes
      4
      Posts
      1340
      Views

      micahmicah

      Thank you so much!
    • justvanrossum

      Animation tutorial screencast
      animation • • justvanrossum  

      6
      3
      Votes
      6
      Posts
      5584
      Views

      jo

      @long-season at what part are you stuck? did you have a look at the documentation? http://www.drawbot.com/content/text/drawingText.html
    • reid

      This topic is deleted!
      • reid  

      1
      0
      Votes
      1
      Posts
      4
      Views

      No one has replied

    • bic

      Kadenze online course
      getting started • • bic  

      2
      1
      Votes
      2
      Posts
      1453
      Views

      MauriceMeilleur

      @bic Ooh. Looks intriguing. I wonder if there's a Rhino Python library that could be imported and used in DB …
    Drawing With Python