Instantly share code, notes, and snippets.

Embed
What would you like to do?
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