This beginners book introduces non-programmers to the fundamentals of computer coding within a visual, arts-focused context. Tristan Bunn’s remarkably effective teaching approach is designed to help you visualize core programming concepts while you make cool pictures, animations, and simulations using Python Mode for the open-source Processing development environment.
Right from the first chapter, you'll produce and manipulate colorful drawings, shapes and patterns as Bunn walks you through a series of easy-to-follow graphical coding projects that grow increasingly complex. You’ll go from drawing with code to animating a bouncing DVD screensaver and practicing data-visualization techniques. Along the way, you’ll encounter creative-yet-practical skill-building challenges that relate to everything from video games, cars, and coffee, to fine art, amoebas, and Pink Floyd. As you grow more fluent in both Python and programming in general, topics shift toward the mastery of algorithmic thinking, as you explore periodic motion, Lissajous curves, and using classes to create objects.
You’ll learn about:
• Basic coding theories and concepts, like variables, data types, pixel coordinates, control flow and algorithms
• Writing code that produces drawings, patterns, animations, data visualizations, user interfaces, and simulations
• Using conditional statements, iteration, randomness, lists and dictionaries
• Defining functions, reducing repetition, and making your code more modular
• How to write classes, and create objects to structure code more efficiently
In addition to giving you a good grounding in general programming, the skills and knowledge you’ll gain in this book are your entry point to coding for an ever-expanding horizon of creative technologies.
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
【One-Line Pitch】
A hands-on, visual introduction to Python programming for complete beginners, using the Processing.py environment to teach coding through drawing, animation, and creative projects—ideal for artists, designers, and anyone who learns better by seeing immediate graphical results.
【Book Arc】
- **Opening (~0%–9%)**: Sets up the Processing.py environment, explains the interface, and introduces the very first coding concepts—display windows, coordinates, colors, and basic shapes—so readers produce visible output from the very first lines of code.
- **Early (~9%–25%)**: Covers core programming fundamentals through visual examples: variables, arithmetic operators (including the modulo operator), data types, and the 2D primitive shape functions (point, line, triangle, quad, arc). Includes the first challenge (Rainbow Task) to practice shape layering and masking.
- **Early–Middle (~25%–38%)**: Dives into more complex drawing techniques with Bézier curves and custom shapes using beginShape()/endShape(). Introduces control points and vertices, showing how to manipulate curves for precise graphical control.
- **Middle (~38%–47%)**: Shifts to strings and text handling—creating strings, concatenation, formatting, slice notation, and string methods—then applies these to typography in Processing with text() functions, fonts, and alignment.
- **Middle (~47%–end of sample)**: Begins the transition to conditional statements and control flow, introducing Boolean data types, relational operators, and if/elif/else logic, setting up for more interactive and decision-based programs.
【Key Takeaways】
- **Immediate visual feedback accelerates learning** (Opening): Unlike traditional text-based tutorials, every concept is demonstrated through visible graphical output, making abstract programming ideas concrete and satisfying. This is the book's core pedagogical strength.
- **The Processing.py environment is the gateway** (Early): Setting up Python Mode in Processing is straightforward, and the built-in examples and error messages (like the "unclosed paren" alert) help beginners debug confidently. The book assumes zero prior coding experience.
- **2D primitives are the building blocks of visual code** (Early): Functions like point(), line(), triangle(), quad(), and arc() teach coordinate systems and function arguments through drawing. The Rainbow Task challenge cleverly uses shape overlap to teach masking.
- **Variables and arithmetic make shapes dynamic** (Early): Instead of hardcoding values, the book shows how variables and operators (including the often-overlooked modulo operator) let you create adaptable, reusable drawing code—a foundational programming mindset.
- **Bézier curves teach precision and control** (Middle): Using bezierVertex() and control points to form complex shapes (like a circle from four curves) demonstrates how mathematical concepts translate directly into visual results, building algorithmic thinking.
- **String manipulation is practical, not abstract** (Middle): The URL-slicing example (extracting subdomain, domain, and top-level domain) makes string methods and slice notation immediately useful and memorable, showing real-world applications.
- **Typography connects coding to design** (Middle): Rendering pangrams with text() functions, adjusting fonts, and understanding monospace vs. proportional spacing bridges programming and visual design, appealing to creative readers.
- **Control flow enables interactivity** (Middle): The introduction of Booleans, relational operators, and if/elif/else statements marks the shift from static drawings to programs that can respond to conditions—the foundation for animations and simulations later in the book.
【Reading Tips】
- **Do every challenge**: The Rainbow Task (Chapter 1) and Four-Square Task (Chapter 4) are not optional—they cement the concepts through hands-on problem-solving. Try them before peeking at solutions.
- **Skim the environment setup if you're experienced**: If you've coded before, the first ~10% (installing Processing, Python Mode, interface tour) can be skimmed. Jump straight to the shape-drawing sections around 15–25%.
- **Deep-read the Bézier curve sections**: These are the most conceptually dense parts of the early book. Take time to experiment with control point values—the visual feedback makes the math intuitive.
- **Practice string slicing with your own URLs**: The string chapter (around 44%) is more abstract than the drawing chapters. Recreate the URL examples with different web addresses to internalize slice notation.
- **Expect a learning curve with syntax errors**: The book acknowledges that missing parentheses or quotes are common. Use the Processing error messages as learning tools—they often suggest the exact problem.
【Coverage Limits】
This guide covers the opening through the conditional statements chapter (~47% of the book). The excerpts do not cover later topics like iteration/loops in depth, randomness, lists/dictionaries, functions, classes, animations, or data visualization—though the blurb indicates these appear later in the book.
Excerpt 1
R E A T I V E C O D I N G W I T H P R O C E S S I N G . P Y T R I S T A N B U N N About the Author Tristan Bunn kicked off his web design career back in the...
ocessing File Edit Sketch Tools Help Python Figure 1-3: The button to the right indicates that Python Mode is activated. You’re now ready to write your first...
e arithmetic operators to perform mathematical operations. You’ve also seen how to use Python variables, which are placeholders for data. Processing includes...
it again in the chapters that deal with those data types. Introduction to Strings and Working with Text 59 monospace proportionally spaced mmm mmm iii iii...
specific algorithm. If you know the algorithm and the con- ditions used to generate “random” numbers, you can predict patterns in the sequence. Therefore, a...
ts hold multiple values that are related or belong together. For exam- ple, consider programming a video game in which players wander about collect ing vario...
n) is retained once you save back to CSV. 154 Chapter 7 8 D I C T I O N A R I E S A N D J S O N Dictionaries hold collections of items, similar to the orde...
ign to assign a default value to a parameter. For example, the following adds a default value of 'Hello' to your txt parameter: def speechBubble(x, y, txt='H...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Learn Python Visually Creative Coding with Processing.py (Tristan Bunn)(Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Learn Python Visually Creative Coding with Processing.py (Tristan Bunn)(Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment