http://blog.csdn.net/Fortware/article/details/38307799

/**
* Mixture
* by Simon Greenwold.
*
* Display a box with three different kinds of lights.
*/ void setup() {
size(640, 360, P3D);
noStroke();
} void draw() {
background(0);
translate(width / 2, height / 2); // Orange point light on the right
pointLight(150, 100, 0, // Color
200, -150, 0); // Position // Blue directional light from the left
directionalLight(0, 102, 255, // Color
1, 0, 0); // The x-, y-, z-axis direction // Yellow spotlight from the front
spotLight(255, 255, 109, // Color
0, 40, 200, // Position
0, -0.5, -0.5, // Direction
PI / 2, 2); // Angle, concentration rotateY(map(mouseX, 0, width, 0, PI));
rotateX(map(mouseY, 0, height, 0, PI));
box(150);
}

  

最新文章

  1. virtualbox虚拟机中的centos与macos共享文件夹
  2. MySql使用show processlist查看正在执行的Sql语句
  3. Linq101-QueryExecution
  4. (转)基于企业级证书的IOS应用打包升级功能介绍
  5. 【高斯消元】兼 【期望dp】例题
  6. ubuntu中设置php7.0-fpm开机自启动
  7. Can you find it?(哈希)
  8. 配置 github 上的程序
  9. Maven学习(八)-- 使用Nexus搭建Maven私服
  10. bzoj 3597 [Scoi2014] 方伯伯运椰子 - 费用流 - 二分答案
  11. 吴恩达机器学习笔记30-神经网络的反向传播算法(Backpropagation Algorithm)
  12. React 学习(四) ---- 生命周期函数
  13. 【小玩意】time-passing-by clock
  14. Java 将 List 里面的内容写入桌面的 txt 文档
  15. PHP大小写是否敏感问题的汇总
  16. MVC三级联动无刷新
  17. 关于Struts2有时候出现的莫名其妙的错误
  18. 《时间序列分析——基于R》王燕,读书笔记
  19. 浅谈使用 PHP 进行手机 APP 开发(API 接口开发)
  20. 关于Array的操作

热门文章

  1. C++异常的几种捕获方式
  2. Linux中inotify软件部署及参数事件演示
  3. [Hadoop异常处理] Namenode和Datanode都正常启动,但是web页面不显示
  4. Web前端基础——jQuery(二)
  5. layui 数据表格+分页+搜索+checkbox+缓存选中项数据
  6. 在线客服兼容谷歌Chrome、苹果Safari、Opera浏览器的修改
  7. 对GIL的一些理解
  8. python之网络通信协议
  9. Microsoft Dynamics CRM 9.0 OP 版本 移动端
  10. Leaflet 测试加载高德地图