Description |
1 online resource |
Contents |
Cover; Half Title; Title Page; Copyright Page; Dedication; Table of Contents; Foreword; Preface: Why We Wrote This Book and For Whom It Is Written ; What Is Processing?; Why Not Java?; What about Python?; Why This Book?; Acknowledgments; Introduction: Welcome to Computer Programming; Why Learn to Program?; A Tour of Processing; 1: Basic Drawing in Processing; Starting a New Program; Saving a Program; Retrieving a Program; Entering Code into the Text Editor; Basic Drawing with Graphical Elements; Setting the "Canvas" Size: A Closer Look at the size() Function |
|
Drawing Points: The point() FunctionDrawing Line Segments: The line() Function; Drawing Rectangles: The rect() Function; Drawing Ellipses: The ellipse() Function; Drawing Triangles: The triangle() Function; Drawing Quadrilaterals: The quad() Function; Drawing Arcs: The arc() Function; Summary; The Processing Reference; More about Graphical Elements; Stacking Order; Changing Line Thickness: The strokeWeight() Function; Working with Color: RGB; Resetting the Canvas: The background() Function; Changing the Fill Color: The fill() and noFill() Functions |
|
Changing the Stroke Color: The stroke() and noStroke() FunctionsInline Comments; Grayscale; Transparency; Summary; Exercises; 2: Types, Expressions, and Variables; Values; Numeric Values; Integers: The int Type; Numbers with Decimal Points: The float Type; Arithmetic with int Values and float Values; int Arithmetic; Integer Division; Calculating the Remainder with the Modulo Operator: % ; float Arithmetic; float Fractions; The Trouble with Fractions on Computers; Evaluating Expressions; Order of Operations; Using Parentheses; Variables; Predefined Variables: width and height |
|
Benefits of Using VariablesCreating and Using Our Own Variables; Variable Names; Variable Types; Declaring a Variable; Assigning a Value to a Variable; Combining Declaration and Initialization; Reusing a Variable; Type Mismatches; Why Not Use Only the float Type?; Expressions in Assignment Statements; Using a Variable on the Right-Hand Side of an Assignment Statement; Being Careful with Integer Division; Reassigning a New Value to a Variable; Constants; Predefined Constants; Defining Our Own Constants; Nonnumeric Types; Individual Characters: The char Type |
|
Multiple Characters: The String TypeString Concatenation; Summary; Exercises; 3: More about Using Processing' s Built-In Functions; More about Console Output: The print() and println() Functions; Displaying Multiple Items to the Console; Graphical Text in Processing; The text() Function; The textsize() Function; The textAlign() Function; Matching the Type of an Argument to the Type of a Parameter; Two Kinds of Functions; void Functions; Functions That Return a Value; Determining a Function' s Return Type Using Processing' s Reference |
Summary |
"Originally designed to make it simpler for digital artists to learn to program, Processing is a wonderful first language for anyone to learn. Given its origins, programming graphics, animations, and interactivity is much simpler in Processing, thus providing a much-needed visual approach to programming instruction in computer science as well as the arts and humanities. However, current books on Processing are either artistically oriented or proceed at a pace that is not really accessible for novices. This gentle introduction to computer programming using Processing includes the standard programming constructs, as well as examples that use animation and interactive graphics"--Publisher's description |
Bibliography |
Includes bibliographical references and index |
Notes |
Print version record |
Subject |
Processing (Computer program language)
|
|
Computer programming -- Study and teaching
|
|
COMPUTERS -- Programming -- General.
|
|
Computer programming -- Study and teaching.
|
|
Processing (Computer program language)
|
Form |
Electronic book
|
Author |
Nyhoff, Larry R., author
|
ISBN |
9781351645225 |
|
9781482255966 |
|
1482255960 |
|
9781315118925 |
|
1351645226 |
|
1315118920 |
|