2014-04-21から1日間の記事一覧
PImage img; void setup() { size(800, 300); img = loadImage("IMG_0266.jpg"); float w, h; if (img.width>img.height) { w = (float)width; h = (float)width/img.width*img.height; } else { w = (float)height/img.height*img.width; h = (float)height…