Skip to content

Instantly share code, notes, and snippets.

@dotimpact
Created April 26, 2016 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dotimpact/eafca3860cf381f91244644b96a42bde to your computer and use it in GitHub Desktop.
Save dotimpact/eafca3860cf381f91244644b96a42bde to your computer and use it in GitHub Desktop.
size(420, 240);
noStroke();
rect(0, 0, 420, 200);
stroke(0);
//==== ここに図形を命令を描く
rect(50, 50, 100, 100);
//==== ここまでに図形命令を描く
// 解答に名前を入れてね
fill(0);
text("kotaroの解答", 5, 220);
PImage img = loadImage("question.png");
image(img, 220, 0);
noFill();
stroke(200);
rect(0, 0, 200, 200);
line(0, 100, 200, 100);
line(100, 0, 100, 200);
rect(220, 0, 200, 200);
line(220, 100, 420, 100);
line(320, 0, 320, 200);
//「スケッチ」メニューの「スケッチフォルダーを開く」でフォルダを開き、
// 「answer.png」をslackに投稿する
save("answer.png");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment