توضیحاتی در مورد کتاب :
رویکردی در دسترس، بصری و خلاقانه برای آموزش برنامه نویسی پایتون با استفاده از محیط توسعه پردازش متمرکز بر سواد نرم افزار. خوانندگان با نوشتن کدی که نتایج خلاقانه، جذاب و زیباییشناختی ایجاد میکند، مبانی برنامهنویسی را یاد میگیرند. رویکردی در دسترس، بصری و خلاقانه برای آموزش برنامه نویسی پایتون با استفاده از محیط توسعه پردازش. خوانندگان با نوشتن کدهایی که نتایج جذاب و زیباییشناختی را تولید میکنند، عملکرد نظری و فنی برنامهنویسی رایانه را یاد میگیرند. بر اساس یک دهه تجربه سخنرانی، نویسنده آنچه را که برای کسانی که به دنبال یادگیری اصول برنامه نویسی در یک زمینه بصری هستند بهترین کار را پوشش می دهد. این مهارتها نقطه ورود به دنیای هنر کد، ساخت بازیهای ویدیویی، توسعه وب و سایر فناوریهای خلاقانه است. از میان موضوعاتی که در این کتاب پوشش داده شده است، خوانندگان یاد میگیرند که چگونه رایانهها رنگ را مدیریت میکنند، چگونه با کد ترسیم و متحرک شوند، چگونه تصادفی را به برنامهها اضافه کنند، برخی تکنیکهای تجسم دادهها، و مدیریت تعامل ماوس و صفحه کلید.
فهرست مطالب :
About the Author
About the Tech Reviewer
Acknowledgments
Introduction
Who Is This Book For?
What Is Python Mode for Processing?
What Are Algorithms?
What Is Creative Coding?
Where Can I Find Help?
Online Resources
Source Code and Solutions
What’s in This Book?
Let’s Go!
Chapter 1: Hello, World!
Processing Installation and Python Mode Setup
Your First Sketch
Comments
Whitespace
Errors
Color
Fills and Strokes
Background Color
Color Modes
2D Primitives
triangle()
ellipse()
quad()
line()
Challenge #1: Rainbow Task
Variables
Arithmetic Operators
Basic Operations
Modulo Operator
Arcs
Challenge #2: Disk Usage Analyzer
Summary
Chapter 2: Drawing More Complicated Shapes
Displaying a Grid
Drawing Curves Using Catmull-Rom Splines
Curving Lines with curve()
Changing Curves with curveTightness()
Drawing Bézier Curves
Using the bezier() Function
Positioning Anchor and Control Points
Drawing Shapes Using Vertices
Bézier Vertices
Using Vector Graphics Software for Generating Shapes
Summary
Chapter 3: Introduction to Strings and Working with Text
Strings
Creating Strings in Python
Using Concatenation and String Formatting
Working with String Length
String Manipulation
Slice Notation
String Methods
Typography
Fonts
Text Functions
Summary
Chapter 4: Conditional Statements
Control Flow
Conditional Statements
The Boolean Data Type
Relational Operators
if Statements
elif Statements
else Statements
Logical Operators
Challenge #3: Four-Square Task
Summary
Chapter 5: Iteration and Randomness
Iteration
Using Iteration to Draw Concentric Circles
while Loops
for Loops
Challenge #4: Create Line Patterns
break and continue Statements
Randomness
random() Function
Random Seed
Truchet Tiles
Summary
Chapter 6: Motion and Transformation
Perceiving Motion
Adding Motion to Processing Sketches
The draw() and setup() Functions
Global Variables
Saving Frames
Challenge #5: DVD Screensaver
Transformations
Processing Transformation Functions
translate()
rotate()
scale()
shearX() and shearY()
pushMatrix() and popMatrix()
Challenge #6: Analog Clock
Summary
Chapter 7: Working with Lists and Reading Data
Introducing Lists
Creating and Accessing Lists
Modifying Lists
Combining Loops and Lists
Drawing Shapes by Using a List of Color Values
Looping with enumerate()
Creating Lists of Lists
Challenge #7: Breakout Level
Reading Data
File Formats
CSV
Challenge #8: Games Sales Chart
Summary
Chapter 8: Dictionaries and JSON
Introducing Dictionaries
Accessing Dictionaries
Modifying Dictionaries
Nesting Dictionaries and Lists
Combining Loops and Dictionaries
Iterating Keys
Iterating Values
Iterating Items
Working with JSON
Understanding JSON Syntax
Using Web APIs
Reading in JSON Data
Challenge #9: Coffee Chart
Summary
Chapter 9: Functions and Periodic Motion
Defining Functions
Creating a Simple Speech Bubble Function
Drawing Compound Shapes Using a Function
Adding Arguments and Parameters
Using Keyword Arguments
Setting Default Values
Mixing Positional and Keyword Arguments
Returning Values
Defining Functions for Periodic Motion
An Introduction to Trigonometric Functions
Circular and Elliptical Motion
Sine Waves
Lissajous Curves
Creating Screensaver-Like Patterns with Lissajous Curves
Summary
Chapter 10: Object-Oriented Programming and PVector
Working with Classes
Defining a New Class
Creating an Instance from a Class
Adding Attributes to a Class
Adding Methods to a Class
Programming Movement with Vectors
The PVector Class
Moving an Amoeba with PVector
Adding Many Amoebas to the Simulation
Splitting Your Python Code into Multiple Files
Challenge #10: Collision Detection
Summary
Chapter 11: Mouse and Keyboard Interaction
Mouse Interaction
Mouse Variables
Mouse Events
Creating a Paint App
Keyboard Interaction
Adding Keyboard Shortcuts to the Paint App
Challenge #11: Adding Paint App Features
Summary
Afterword
More Python for Processing
More Python
Other Creative Coding Environments
INDEX
توضیحاتی در مورد کتاب به زبان اصلی :
An accessible, visual, and creative approach to teaching Python programming using the software literacy-focused Processing development environment. Readers learn the foundations of programming as they write code that produces creative, intriguing, and aesthetically-pleasing results. An accessible, visual, and creative approach to teaching Python programming using the Processing development environment. Readers learn the theoretical and technical workings of computer programming as they write code that produces intriguing and aesthetically-pleasing results. Based on a decade's worth of lecturing experience, the author covers what works best for those looking to learn programming fundamentals in a visual context. These skills provide an entry point into the world of code art, making video games, web development, and other creative technologies. Among the topics covered in the book, readers will learn how computers manage color, how to draw and animate with code, how to add randomness to programs, some data visualization techniques, and handling mouse and keyboard interaction.