Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Javaユーザに知ってほしいProcessing入門

 Javaユーザに知ってほしいProcessing入門

Java Doでしょう #08で発表した資料です。
https://javado.connpass.com/event/47668/

chicken Jr.

April 18, 2018
Tweet

More Decks by chicken Jr.

Other Decks in Programming

Transcript

  1.  void setup() { size(800, 400); } void draw() {

    textSize(100); fill(0); text("Hello World", 0, height/2); }
  2.  void setup() { size(800, 400); } void draw() {

    textSize(100); fill(0); text("Hello World", 0, height/2); rect(0, 200, width, 10); }
  3.  int r = 0; int g = 0; int

    b = 0; void setup() { size(300,300); } void draw() { background(r, g, b); fill(255); ellipse(mouseX, mouseY, 20, 20); } void mouseClicked(){ r = 0; g = mouseX; b = mouseY; }
  4.  PImage img; void setup() { size(400, 200); img =

    loadImage("icon1007.png"); } void draw() { tint(0, 153, 204); // Tint blue image(img, 0, 0, 200, 200); noTint(); image(img, 200, 0, 200, 200); //filter(THRESHOLD); //filter(INVERT); }
  5.  PImage img; void setup() { size(400, 200); img =

    loadImage("icon1007.png"); } void draw() { tint(0, 153, 204); // Tint blue image(img, 0, 0, 200, 200); noTint(); image(img, 200, 0, 200, 200); filter(THRESHOLD); //filter(INVERT); }
  6.  PImage img; void setup() { size(400, 200); img =

    loadImage("icon1007.png"); } void draw() { //tint(0, 153, 204); // Tint blue image(img, 0, 0, 200, 200); //noTint(); image(img, 200, 0, 200, 200); //filter(THRESHOLD); filter(INVERT); }