豆腐蜗牛 发表于 2012-7-25 20:00:37

转Processing的基础教程─菜鸟级(绘图)

这个太过于基础,我就不详细介绍了,大家可以参考下面链接的网站,讲解如何用processing 画图, 我分享一个画蝇蛆的造型的例子,也希望大家能分享自己画的!

http://imlab.cc/whale/?p=142

例子:PShape bot;

void setup() {
size(640, 360);
smooth();
// The file "bot1.svg" must be in the data folder
// of the current sketch to load successfully
bot = loadShape("bot1.svg");
noLoop();
}

void draw() {
background(102);

// Draw left bot
bot.disableStyle();// Ignore the colors in the SVG
fill(0, 102, 153);    // Set the SVG fill to blue
stroke(255);          // Set the SVG fill to white
shape(bot, 20, 25, 300, 300);

// Draw right bot
bot.enableStyle();
shape(bot, 320, 25, 300, 300);
}

麽麽茶㊣ 发表于 2012-7-27 12:48:21

这第一个教程就。。。{:soso__6235880048239246314_3:}

豆腐蜗牛 发表于 2012-7-27 22:18:28

那我下次好好整理一下,发一些相当基础一些的:)

cnkids 发表于 2012-8-1 02:27:45

这个口味略重啊。。

liang647 发表于 2012-8-9 21:00:52

特别想学processing。。求大神多发教程啊。。这里好冷清。。
页: [1]
查看完整版本: 转Processing的基础教程─菜鸟级(绘图)