0 ardunio processing 显示三轴数据
2024-08-27 11:59:03
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);
}
最新文章
- virtualbox虚拟机中的centos与macos共享文件夹
- MySql使用show processlist查看正在执行的Sql语句
- Linq101-QueryExecution
- (转)基于企业级证书的IOS应用打包升级功能介绍
- 【高斯消元】兼 【期望dp】例题
- ubuntu中设置php7.0-fpm开机自启动
- Can you find it?(哈希)
- 配置 github 上的程序
- Maven学习(八)-- 使用Nexus搭建Maven私服
- bzoj 3597 [Scoi2014] 方伯伯运椰子 - 费用流 - 二分答案
- 吴恩达机器学习笔记30-神经网络的反向传播算法(Backpropagation Algorithm)
- React 学习(四) ---- 生命周期函数
- 【小玩意】time-passing-by clock
- Java 将 List 里面的内容写入桌面的 txt 文档
- PHP大小写是否敏感问题的汇总
- MVC三级联动无刷新
- 关于Struts2有时候出现的莫名其妙的错误
- 《时间序列分析——基于R》王燕,读书笔记
- 浅谈使用 PHP 进行手机 APP 开发(API 接口开发)
- 关于Array的操作
热门文章
- C++异常的几种捕获方式
- Linux中inotify软件部署及参数事件演示
- [Hadoop异常处理] Namenode和Datanode都正常启动,但是web页面不显示
- Web前端基础——jQuery(二)
- layui 数据表格+分页+搜索+checkbox+缓存选中项数据
- 在线客服兼容谷歌Chrome、苹果Safari、Opera浏览器的修改
- 对GIL的一些理解
- python之网络通信协议
- Microsoft Dynamics CRM 9.0 OP 版本 移动端
- Leaflet 测试加载高德地图