├── .gitignore ├── README.md ├── img ├── 2d_primitives.svg ├── bezier.svg ├── bg.svg ├── coordinate_space.svg ├── function_anatomy.svg ├── page_1.png ├── page_2.png └── radians.svg ├── p.py_cc.pdf ├── p.py_cc.sla └── py5 ├── img ├── 2d_primitives.svg ├── bezier.svg ├── bg.svg ├── coordinate_space.svg ├── function_anatomy.svg └── radians.svg ├── py5_cc.pdf └── py5_cc.sla /.gitignore: -------------------------------------------------------------------------------- 1 | tmp/ 2 | *_autosave_*.sla 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Processing.py Cheat Sheet 2 | 3 | *A Processing Python Mode / Processing.py cheat sheet for beginners* 4 | 5 | **[Download Python Mode / Processing.py cheatsheet (p.py_cc.pdf)](https://raw.githubusercontent.com/tabreturn/processing.py-cheat-sheet/master/p.py_cc.pdf)** 6 | 7 | **[Download py5 cheatsheet (py5_cc.pdf)](https://raw.githubusercontent.com/tabreturn/processing.py-cheat-sheet/master/py5/py5_cc.pdf)** 8 | 9 | *page 1* 10 | [![](img/page_1.png)](https://raw.githubusercontent.com/tabreturn/processing.py-cheat-sheet/master/p.py_cc.pdf) 11 | *page 2* 12 | [![](img/page_2.png)](https://raw.githubusercontent.com/tabreturn/processing.py-cheat-sheet/master/p.py_cc.pdf) 13 | 14 | Designed with [Scribus](https://www.scribus.net/) and [Inkscape](https://inkscape.org/) 15 | Fonts: [DejaVu Sans](https://dejavu-fonts.github.io/), [Enriqueta](https://fonts.google.com/specimen/Enriqueta), [Source Code Pro](https://fonts.google.com/specimen/Source+Code+Pro) 16 | 17 | ## More Python Mode Resources 18 | 19 | Resources for teaching artists, designers, and architects to code: 20 | 21 | * https://github.com/villares/Resources-for-teaching-programming 22 | 23 | Java Mode Processing and p5.js cheat sheets: 24 | 25 | * https://bmoren.github.io/p5js-cheat-sheet/ 26 | * https://cdn.sparkfun.com/assets/6/3/f/e/3/Processing_Cheatsheet_Update.pdf 27 | * https://www.cs.bham.ac.uk/~cxp291/ri/processing_cheat_sheet_english.pdf 28 | 29 | A plain-old, Processing-less beginner Python cheat sheet: 30 | 31 | * https://github.com/ehmatthes/pcc/blob/master/cheat_sheets/beginners_python_cheat_sheet_pcc.pdf 32 | 33 | ## Potential Additions 34 | 35 | *Perhaps a simple 1- or 2-pager works best. Once the user outgrows this cheat sheet, the [official Python Mode reference](https://py.processing.org/reference) is probably more useful than a cheat sheet with several more pages.* 36 | 37 | - [ ] strings 38 | - [ ] slice notation 39 | - [x] conditional statements 40 | - [x] iteration 41 | - [x] random 42 | - [x] frames 43 | - [ ] transformation 44 | - [ ] date & time 45 | - [ ] lists 46 | - [ ] external data 47 | - [ ] dictionaries 48 | - [ ] functions 49 | - [ ] trig 50 | - [ ] objects 51 | - [ ] vectors 52 | - [ ] interaction 53 | - [x] constants 54 | 55 | -------------------------------------------------------------------------------- /img/2d_primitives.svg: -------------------------------------------------------------------------------- 1 | 2 | image/svg+xmlx, yx1, y1x2, y2x, ywidthheightx, ywidthheightdiameterx, yx, yextentextent 507 | -------------------------------------------------------------------------------- /img/bezier.svg: -------------------------------------------------------------------------------- 1 | 2 | image/svg+xmlx1, y1x2, y2x2cp, y2cpx1cp, y1cp 344 | -------------------------------------------------------------------------------- /img/bg.svg: -------------------------------------------------------------------------------- 1 | 2 | 13 | 15 | 16 | 18 | image/svg+xml 19 | 21 | 22 | 23 | 24 | 25 | 27 | 29 | 36 | 40 | 44 | 48 | 52 | 56 | 60 | 64 | 68 | 72 | 76 | 80 | 84 | 88 | 92 | 96 | 100 | 104 | 108 | 112 | 116 | 120 | 124 | 128 | 132 | 136 | 140 | 144 | 148 | 152 | 156 | 160 | 164 | 168 | 172 | 176 | 180 | 184 | 188 | 192 | 196 | 200 | 204 | 208 | 212 | 216 | 220 | 224 | 228 | 232 | 236 | 240 | 244 | 248 | 252 | 256 | 260 | 264 | 268 | 272 | 276 | 280 | 284 | 288 | 292 | 296 | 300 | 304 | 308 | 312 | 316 | 320 | 324 | 328 | 332 | 336 | 340 | 344 | 348 | 352 | 356 | 360 | 364 | 368 | 372 | 376 | 380 | 384 | 388 | 392 | 396 | 400 | 404 | 408 | 412 | 416 | 420 | 424 | 428 | 432 | 436 | 440 | 444 | 448 | 452 | 456 | 460 | 464 | 468 | 472 | 476 | 480 | 484 | 488 | 492 | 496 | 500 | 504 | 508 | 512 | 516 | 520 | 524 | 528 | 532 | 536 | 540 | 544 | 548 | 552 | 556 | 560 | 564 | 568 | 572 | 576 | 580 | 584 | 588 | 592 | 596 | 600 | 601 | 608 | 609 | -------------------------------------------------------------------------------- /img/coordinate_space.svg: -------------------------------------------------------------------------------- 1 | 2 | image/svg+xml400200x-axisy-axis0 201 | -------------------------------------------------------------------------------- /img/function_anatomy.svg: -------------------------------------------------------------------------------- 1 | 2 | image/svg+xmlfunctionnamewidthheightargumentssize(400,_200) 236 | -------------------------------------------------------------------------------- /img/page_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tabreturn/processing.py-cheat-sheet/cdcc8fcaae7e2b901d37825a19f44c14f66a5a82/img/page_1.png -------------------------------------------------------------------------------- /img/page_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tabreturn/processing.py-cheat-sheet/cdcc8fcaae7e2b901d37825a19f44c14f66a5a82/img/page_2.png -------------------------------------------------------------------------------- /img/radians.svg: -------------------------------------------------------------------------------- 1 | 2 | image/svg+xml2π radiansπ radians2 radians 224 | -------------------------------------------------------------------------------- /p.py_cc.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tabreturn/processing.py-cheat-sheet/cdcc8fcaae7e2b901d37825a19f44c14f66a5a82/p.py_cc.pdf -------------------------------------------------------------------------------- /py5/img/bezier.svg: -------------------------------------------------------------------------------- 1 | 2 | image/svg+xmlx1, y1x2, y2x2cp, y2cpx1cp, y1cp 344 | -------------------------------------------------------------------------------- /py5/img/bg.svg: -------------------------------------------------------------------------------- 1 | 2 | 13 | 15 | 16 | 18 | image/svg+xml 19 | 21 | 22 | 23 | 24 | 25 | 27 | 29 | 36 | 40 | 44 | 48 | 52 | 56 | 60 | 64 | 68 | 72 | 76 | 80 | 84 | 88 | 92 | 96 | 100 | 104 | 108 | 112 | 116 | 120 | 124 | 128 | 132 | 136 | 140 | 144 | 148 | 152 | 156 | 160 | 164 | 168 | 172 | 176 | 180 | 184 | 188 | 192 | 196 | 200 | 204 | 208 | 212 | 216 | 220 | 224 | 228 | 232 | 236 | 240 | 244 | 248 | 252 | 256 | 260 | 264 | 268 | 272 | 276 | 280 | 284 | 288 | 292 | 296 | 300 | 304 | 308 | 312 | 316 | 320 | 324 | 328 | 332 | 336 | 340 | 344 | 348 | 352 | 356 | 360 | 364 | 368 | 372 | 376 | 380 | 384 | 388 | 392 | 396 | 400 | 404 | 408 | 412 | 416 | 420 | 424 | 428 | 432 | 436 | 440 | 444 | 448 | 452 | 456 | 460 | 464 | 468 | 472 | 476 | 480 | 484 | 488 | 492 | 496 | 500 | 504 | 508 | 512 | 516 | 520 | 524 | 528 | 532 | 536 | 540 | 544 | 548 | 552 | 556 | 560 | 564 | 568 | 572 | 576 | 580 | 584 | 588 | 592 | 596 | 600 | 601 | 608 | 609 | -------------------------------------------------------------------------------- /py5/img/coordinate_space.svg: -------------------------------------------------------------------------------- 1 | 2 | image/svg+xml400200x-axisy-axis0 201 | -------------------------------------------------------------------------------- /py5/img/function_anatomy.svg: -------------------------------------------------------------------------------- 1 | 2 | image/svg+xmlfunctionnamewidthheightargumentssize(400,_200) 236 | -------------------------------------------------------------------------------- /py5/img/radians.svg: -------------------------------------------------------------------------------- 1 | 2 | image/svg+xml2π radiansπ radians2 radians 246 | -------------------------------------------------------------------------------- /py5/py5_cc.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tabreturn/processing.py-cheat-sheet/cdcc8fcaae7e2b901d37825a19f44c14f66a5a82/py5/py5_cc.pdf --------------------------------------------------------------------------------