Learning Processing Zoog

本文介绍了如何使用LearningProcessing的Daniel Shiffman教程中的示例1-5,通过Processing语言创建一个简单的动物角色Zoog,包括身体、头部、眼睛和腿部的绘制。重点在于基础图形操作和布局。
摘要由CSDN通过智能技术生成

// Learning Processing
// Daniel Shiffman
// http://www.learningprocessing.com

// Example 1-5: Zoog
size(640,360);
background(255);
ellipseMode(CENTER);
rectMode(CENTER); 


// Body
stroke(0);
fill(150);
rect(320,190,20,100);

// Head
fill(255);
ellipse(320,160,60,60); 

// Eyes
fill(0); 
ellipse(301,160,16,32); 
ellipse(339,160,16,32);

// Legs
stroke(0);
line(310,240,300,250);
line(330,240,340,250);	

 

// Learning Processing
// Daniel Shiffman
// http://www.learningprocessing.com

// Example 1-5: Zoog
size(640,360);
background(255);
ellipseMode(CENTER);
rectMode(CENTER); 


// Body
stroke(0);
fill(150);
rect(320,190,20,100);

// Head
fill(255);
ellipse(320,160,60,60); 

// Eyes
fill(0); 
ellipse(301,160,16,32); 
ellipse(339,160,16,32);


// mouth
fill(0); 
stroke(255, 0, 0);
ellipse(320,180,10,5); 

// Legs
stroke(0);
strokeWeight(3);
line(310,240,300,250);
line(330,240,340,250);	

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Learning Processing: A Beginner's Guide to Programming Images, Animation, and Interaction 2nd Edition pdf Learning Processing, Second Edition, is a friendly start-up guide to Processing, a free, open-source alternative to expensive software and daunting programming languages. Requiring no previous experience, this book is for the true programming beginner. It teaches the basic building blocks of programming needed to create cutting-edge graphics applications including interactive art, live video processing, and data visualization. Step-by-step examples, thorough explanations, hands-on exercises, and sample code, supports your learning curve. A unique lab-style manual, the book gives graphic and web designers, artists, and illustrators of all stripes a jumpstart on working with the Processing programming environment by providing instruction on the basic principles of the language, followed by careful explanations of select advanced techniques. The book has been developed with a supportive learning experience at its core. From algorithms and data mining to rendering and debugging, it teaches object-oriented programming from the ground up within the fascinating context of interactive visual media. This book is ideal for graphic designers and visual artists without programming background who want to learn programming. It will also appeal to students taking college and graduate courses in interactive media or visual computing, and for self-study. A friendly start-up guide to Processing, a free, open-source alternative to expensive software and daunting programming languages No previous experience required—this book is for the true programming beginner! Step-by-step examples, thorough explanations, hands-on exercises, and sample code supports your learning curve
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值