Processing Language(Level-2): Arts(Drawing, Interaction, and Transformation)

Processing Language for Artists


This is an introduction course for programming beginners or media artists. We are now learning Processing language which is really good for media artists. So, we are going to learn how to draw with Processing and also learn Programming language itself too.


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 .
Later, we will practice to use ARRAY data type in several cases. Let's start with a one-dimensional array.





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

Popular posts from this blog

Processing Language(Level-1): Game Coding.

Python (Level-3): Data Types