Python for Designers

by Roberto Arista

Fork me on GitHub

Welcome to Python for Designers

This manual is an introduction to Python3 and DrawBot. It covers some language and programming basics as well as a good share of the DrawBot API. If you are looking for a gentle introduction to programming and you are often busy with drawing stuff on a screen, this is maybe the right place for you!

Why This Manual

Enter if you want to discover the reasons behind this project

>>> read()

A Few Words About

Disclaimers, acknowledgments, and various notes concerning audience and sources

>>> read()

01

Should a Designer Code?

Before diving into the code, let’s clarify why coding could be a good skill for a designer

>>> read()

02

The elements of a Python program

Keywords, operators, expressions. Here we get a grip on the basics of the language

>>> read()

03

Using DrawBot

This tool will bring us along during our journey in the Python world

>>> read()

04

Coordinates and Primitives

It is time to draw. Here we deal with the canvas properties and drawing functions

>>> read()

05

Basic Data Types

What values are made of? It is time to answer some existential questions

>>> read()

06

How to Make Choices

Unfortunately, this is not the self-help section of the manual. It is all about the conditional construct

>>> read()

07

How to Keep Doing Things until You Need To

The conditional construct can be easily extended with iteration. Let the computer do the hard work!

>>> read()

08

Strings, Encoding and Unicode

Before diving into typesetting, we should have clear in mind how computers deal with text

>>> read()

09

Transform Strings

Efficiently transforming values into strings is essential for proper typesetting

>>> read()

10

Typesetting with DrawBot

Finally drawing text into DrawBot, single or multiple lines

>>> read()

11

How to Browse Sequences

Never heard of tuples and lists? Here we go!

>>> read()

Support

This manual is free to read and free from ads. There are a couple of ways to support my work other than money. First of all, you can spread the word on social media and help me reach a broader audience. Or, you can help me to organize a Python+DrawBot workshop in your city.

Contribute

This resource is far from being complete, if you want to know where the development is headed, check the Road Map. If you spot any mistake, or you think something could be explained better, open an issue at the project repository. I also accept to review pull requests.

Who's

Python for Designers is an initiative by Roberto Arista. Beatrice Bianchet and Silvio Lorusso provided substantial help. If you want to check a complete list of the technology & people involved in making this website, you can consult the Acknowledgements and Impressum pages.