ProcessingのPython版「NodeBox」で色々してみたい(゚Д゚)p
NodeBoxのライブラリCore Imageで遊んでみた
01かさねた
size(300,210) coreimage = ximport("coreimage") canvas = coreimage.canvas(WIDTH, HEIGHT) l = canvas.append("bg.png") l = canvas.append("CortYuming_p.gif") canvas.draw()
02いっぱい
size(300,210) coreimage = ximport("coreimage") canvas = coreimage.canvas(WIDTH, HEIGHT) for i in range(20): canvas.append("CortYuming_p.gif") for layer in canvas: layer.x = random(canvas.w) layer.y = random(canvas.h) canvas.draw()
03びょーん
size(300,210) coreimage = ximport("coreimage") canvas = coreimage.canvas(WIDTH, HEIGHT) canvas.append("bg.png") for i in range(10): l = canvas.append("CortYuming_p.gif") l.x = i*28 l.scale(1.0 - i*0.23) canvas.draw()
04ふわくる
size(300,210) coreimage = ximport("coreimage") canvas = coreimage.canvas(WIDTH, HEIGHT) canvas.append("bg.png") for i in range(10): l = canvas.append("CortYuming_p.gif") l.scale(0.7) l.x = random(canvas.w) l.y = random(canvas.h) l.blend(random()) l.rotate(random(360)) canvas.draw()
05いんびな?
size(300,210) coreimage = ximport("coreimage") canvas = coreimage.canvas(WIDTH, HEIGHT) filename = ["bg.png", "CortYuming_p.gif"] for n in filename: canvas.append(n).filter("pixelate", scale=6) canvas.draw()
06てんてん
size(300,210) coreimage = ximport("coreimage") canvas = coreimage.canvas(WIDTH, HEIGHT) filename = ["bg.png", "CortYuming_p.gif"] for n in filename: canvas.append(n).filter("dotscreen") canvas.draw()