Introduction to Processing an open source programming language

  • Slides: 21
Download presentation

Introduction to Processing an open source programming language and integrated development environment (IDE). built

Introduction to Processing an open source programming language and integrated development environment (IDE). built for the electronic arts, new media art, and visual design communities. serve as the foundation for electronic sketchbooks. created by Casey Reas and Benjamin Fry in 2001. The language builds on the Java language, but uses a simplified syntax and graphics programming model. Casey Reas Benjamin Fry

Processing 畫面

Processing 畫面

Processing Menus File Edit Sketch Debug Tool

Processing Menus File Edit Sketch Debug Tool

執行/終止 Processing 程式 Run Stop

執行/終止 Processing 程式 Run Stop

設定視窗大小 size(width, height) // 單位: 像素 size(100, 100); size(100, 200); size(200, 100);

設定視窗大小 size(width, height) // 單位: 像素 size(100, 100); size(100, 200); size(200, 100);

設定視窗背景 background() background(51); background(255, 204, 0); PImage img; img = load. Image("la. Defense. jpg");

設定視窗背景 background() background(51); background(255, 204, 0); PImage img; img = load. Image("la. Defense. jpg"); background(img);

座標系統 size(100, 100)

座標系統 size(100, 100)

設定畫筆粗細:stroke. Weight()

設定畫筆粗細:stroke. Weight()