Python for Designers

by Roberto Arista

Fork me on GitHub

Cookbook

abstract-cookbook.svg

Input/Output

Load CSV table (.py)


    

Load CSV table with keys (.py)


    

Write csv table (.py)


    

read lines from text file (.py)


    

write lines to text file (.py)


    

Collecting files from a folder (.py)


    

Collecting folders from a folder (.py)


    

Cleaning a folder (.py)


    

Deleting file with a specific extension from a folder (.py)


    

Colors

Converting hexadecimal to RGB (255) (.py)


    

Converting RGB (255) to hexadecimal (.py)


    

Interpolating RGB colors (.py)


    

Calculation

Interpolating single value (.py)


    

Extracting factor from extremes and inner value (.py)


    

Mapping value to a new range of extremes (.py)


    

UFO Data

flat kerning (.py)


    

Geometry

Calc angle from two points (.py)


    

Calc distance between two points (.py)


    
closestPoint.png

closest point (.py)


    

Curves

oval.png

oval (.py)


    
lissajous.png

lissajous (.py)


    
welch.png

welch (.py)


    
bartlett.png

bartlett (.py)


    
sine.png

sine (.py)


    
cosine.png

cosine (.py)


    
sqRoot.png

square root (.py)


    
quadratic.png

quadratic (.py)


    

Drawing

Draw a UFO Glyph Object (.py)


    
regularPolygon.png

Draw a regular polygon (.py)


    
grid.png

Draw a grid (.py)


    
background.png

background (.py)


    

Text

retrieve name from unicode database (.py)