Processing
eBook - ePub

Processing

An Introduction to Programming

Jeffrey L. Nyhoff, Larry R. Nyhoff

  1. 544 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

Processing

An Introduction to Programming

Jeffrey L. Nyhoff, Larry R. Nyhoff

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

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.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Processing è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Processing di Jeffrey L. Nyhoff, Larry R. Nyhoff in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Informatique e Infographie. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
2017
ISBN
9781351645225
Edizione
1
Argomento
Informatique
Categoria
Infographie
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 ...

Indice dei contenuti

Stili delle citazioni per Processing

APA 6 Citation

Nyhoff, J., & Nyhoff, L. (2017). Processing (1st ed.). CRC Press. Retrieved from https://www.perlego.com/book/1518264/processing-an-introduction-to-programming-pdf (Original work published 2017)

Chicago Citation

Nyhoff, Jeffrey, and Larry Nyhoff. (2017) 2017. Processing. 1st ed. CRC Press. https://www.perlego.com/book/1518264/processing-an-introduction-to-programming-pdf.

Harvard Citation

Nyhoff, J. and Nyhoff, L. (2017) Processing. 1st edn. CRC Press. Available at: https://www.perlego.com/book/1518264/processing-an-introduction-to-programming-pdf (Accessed: 14 October 2022).

MLA 7 Citation

Nyhoff, Jeffrey, and Larry Nyhoff. Processing. 1st ed. CRC Press, 2017. Web. 14 Oct. 2022.