programming_fundamentals_with_processing:ch02-getting-going.html
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
programming_fundamentals_with_processing:ch02-getting-going.html [2017/07/26 15:52] – [Source code] mithat | programming_fundamentals_with_processing:ch02-getting-going.html [2017/07/26 16:03] – [Entry points] mithat | ||
---|---|---|---|
Line 18: | Line 18: | ||
Below is one of the simplest Processing programs you can write. When executed, it will print an important message about cranberries. | Below is one of the simplest Processing programs you can write. When executed, it will print an important message about cranberries. | ||
- | **program '' | + | <file |
- | + | ||
- | <code java> | + | |
println(" | println(" | ||
- | </code> | + | </file> |
- | This is an example of a program written in what Processing calls its Basic Mode. In Basic Mode, the program' | + | |
- | **program | + | This is an example of a program |
- | <code java> | + | Here's a program with two statements: |
+ | |||
+ | <file java cranberries_and_more.pde> | ||
println(" | println(" | ||
println(" | println(" | ||
- | </code> | + | </file> |
- | Processing' | + | |
+ | Processing' | ||
=== Processing with an entry point === | === Processing with an entry point === | ||
- | Processing will automatically switch to Continuous Mode when you define at least one function in your program. (This is why you are not allowed to define functions in Basic Mode.) In Continuous Mode, Processing will look for a definition of a function called **'' | + | Processing will automatically switch to Continuous Mode when you define at least one function in your program. (This is why you are not allowed to define functions in Basic Mode.) In Continuous Mode, Processing will look for a definition of a function called **'' |
- | **program '' | + | <file java cranberries_continuous_mode.pde> |
- | + | ||
- | <code java> | + | |
void setup() { | void setup() { | ||
println(" | println(" | ||
} | } | ||
- | </code> | + | </file> |
This program consists of a definition of the '' | This program consists of a definition of the '' | ||
Line 50: | Line 49: | ||
<code java> | <code java> | ||
void setup() { | void setup() { | ||
- | | ||
} | } | ||
</ | </ |
programming_fundamentals_with_processing/ch02-getting-going.html.txt · Last modified: 2017/07/26 17:44 by mithat