Processing Language(Level-2): Arts(Drawing, Interaction, and Transformation)
Processing Language for Artists
Session #1: Functions
When the length of the source code becomes long and long, functions are used for reusability and readability of the program.
You need to know:
- function definition
- function parameters(arguments)
Session #2: Repetition statement(for loop) for Line Drawing
You need to know:
- line drawing using for repetition statements.
- need to know repetition statement(while, for), also we will practice to use conditional statement(if statement) together.
- The 'for' statement is much more complex than 'while', so we will deal with it later.
- draw several images using while statements
- draw many ellipses.
- draw many lines.
- vertical lines
- horizontal lines
- ...
Session #3: Box and Circle Drawing using random( ) function
- random( ) functions
- random( a )
- random( a, b )
- draw several shapes(line, ellipse, et al) using random functions.
Session #4: Array
To use a large number of variables, it is effective to use an array. ARRAY data type is really important concept !!! We will use the ARRAY data type for color palette to use favorite colors .Session #4: Global / Local variables
- 2 kinds of variables
- system variables: width, height, mouseX, mouseY, et al
- user variables:
- local variables: declared in a function
- global variables: declared outside a function
Comments
Post a Comment