Processing
eBook - ePub

Processing

An Introduction to Programming

Jeffrey L. Nyhoff, Larry R. Nyhoff

  1. 544 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

Processing

An Introduction to Programming

Jeffrey L. Nyhoff, Larry R. Nyhoff

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Über dieses Buch

This book demonstrates how Processing is an excellent language for beginners to learn the fundamentals of computer programming. 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, Processing enables a multimodal approach to programming instruction, well suited to students with interests in computer science or in the arts and humanities.

The book uses Processing's capabilities for graphics and interactivity in order to create examples that are simple, illustrative, interesting, and fun. It is designed to appeal to a broad range of readers, including those who want to learn to program to create digital art, as well as those who seek to learn to program to process numerical information or data. It can be used by students and instructors in a first course on programming, as well as by anyone eager to teach them self to program.

Following a traditional sequence of topics for introducing programming, the book introduces key computer science concepts, without overwhelming readers with extensive detail. The conversational style and pace of the book are based upon the authors' extensive experience with teaching programming to a wide variety of beginners in a classroom. No prior programming experience is expected.

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist Processing als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu Processing von Jeffrey L. Nyhoff, Larry R. Nyhoff im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Informatique & Infographie. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

Jahr
2017
ISBN
9781351645225
Auflage
1
CHAPTER 1
Basic Drawing in Processing
We’ll now put aside the advanced capability associated with the looping draw() function and Processing’s active mode that we explored at the end of the introduction. We will return instead to Processing’s simpler static mode and work through some simple examples of basic drawing in Processing. These examples will also give us the opportunity to take a closer look at some of the fundamentals of computer programming in general.
This chapter is not an exhaustive introduction to Processing’s extensive drawing capabilities. Rather, the goal is to give you enough of a foundation in drawing with Processing to understand the graphical examples in the chapters that follow.
Starting a New Program
In the Processing window, pull down the File menu and select New.
image
From now on, we will describe such a menu selection as File > New.
We now see a new Processing sketch window:
image
Saving a Program
When starting a new program, it is a good idea to save it promptly and then to save it frequently after making changes to the program. “Save early and often!” is how this strategy is sometimes stated. This is good advice that can help to spare you from losing work that you have done. Saving a program in Processing is very much the same process as saving your work in other software that you use. Select File > Save. Since this is the first time you are saving this program, the “Save sketch folder as…” dialog box appears.
image
Using this dialog, start by choosing the file folder location where you would like to save the Processing program that you are currently writing. By default, Processing will save all your sketches (programs) in a file location that is known as your Sketchbook. This Processing program setting that specifies this default Sketchbook file location can be changed if you plan to save your Processing programs in a different location.* You can also just browse to the desired file folder location in the manner that you usually do when saving your work in other software programs that you use.
Next, in the File name textbox within the dialog box, enter a name for your program. It is customary to capitalize the first letter of a Processing program. Let’s name this example Drawing.
image
Then, click on the Save button to finish saving this program.
image
As a result, Processing creates a new folder in which your program is stored. This folder has the same name as that which you gave to your program. Thus, in this example, the new folder is named Drawing.
image
Processing calls this the sketch folder. If you examine the contents of ...

Inhaltsverzeichnis