Processing编程艺术 Processing编程艺术爱好者殿堂
网站导航
  • 首页
  • 文档
  • 软件下载
  • 书籍
  • 教程
  • 项目
  • Sketch
  • 联系我们
  • 书籍
2017
08-02

saveJSONObject()保存JSON对象

卡萨布兰卡 文档 围观898次 留下评论
NamesaveJSONObject()保存JSON对象  ExamplesJSONObject json;  void setup() {   json = new JSONObject();   json.setInt("id", 0); json.setString("species", "Panthera leo"); json.setString("name", "Li.... Read More >
2017
08-02

saveJSONArray()保存JSON数组

卡萨布兰卡 文档 围观367次 留下评论
NamesaveJSONArray()保存JSON数组  ExamplesString[] species = { "Capra hircus", "Panthera pardus", "Equus zebra" }; String[] names = { "Goat", "Leopard", "Zebra" };  JSONArray values;  void setup() {   .... Read More >
2017
08-02

saveBytes()保存byte数组

卡萨布兰卡 文档 围观496次 留下评论
NamesaveBytes()保存byte数组  Examplesbyte[] nums = { 0, 34, 5, 127, 52};  // Writes the bytes to a file saveBytes("numbers.dat", nums);DescriptionAs the opposite of loadBytes(), this function will write .... Read More >
2017
08-02

PrintWriter打印文本输出

卡萨布兰卡 文档 围观251次 留下评论
NamePrintWriter打印文本输出ExamplesPrintWriter output;  void setup() { // Create a new file in the sketch directory output = createWriter("positions.txt"); }  void draw() { point(mouseX, mouseY); .... Read More >
2017
08-02

endRecord()结束记录

卡萨布兰卡 文档 围观370次 留下评论
NameendRecord()结束记录  Examplesimport processing.pdf.*;  void setup() { size(400, 400); beginRecord(PDF, "everything.pdf"); }  void draw() { ellipse(mouseX, mouseY, 10, 10); }  void mousePresse.... Read More >
2017
08-02

endRaw()结束抓取

卡萨布兰卡 文档 围观489次 留下评论
NameendRaw()结束抓取  Examplesimport processing.pdf.*;  void setup() { size(400, 400); beginRaw(PDF, "raw.pdf"); }  void draw() { line(pmouseX, pmouseY, mouseX, mouseY); }  void keyPressed() { .... Read More >
2017
08-02

createWriter()创建文本

卡萨布兰卡 文档 围观425次 留下评论
NamecreateWriter()创建文本  ExamplesPrintWriter output;  void setup() { // Create a new file in the sketch directory output = createWriter("positions.txt"); }  void draw() { point(mouseX, mouseY).... Read More >
2017
08-02

createOutput()创建输出

卡萨布兰卡 文档 围观390次 留下评论
NamecreateOutput()创建输出  Examples DescriptionSimilar to createInput(), this creates a Java OutputStream for a given filename or path. The file will be created in the sketch folder, or in the same folde.... Read More >
2017
08-02

beginRecord()开始记录

卡萨布兰卡 文档 围观576次 留下评论
NamebeginRecord()开始记录  Examplesimport processing.pdf.*;  void setup() { size(400, 400); beginRecord(PDF, "everything.pdf"); }  void draw() { ellipse(mouseX, mouseY, 10, 10); }  void mousePres.... Read More >
2017
08-01

beginRaw()开始抓取

卡萨布兰卡 文档 围观321次 留下评论
NamebeginRaw()开始抓取  Examplesimport processing.pdf.*;  void setup() { size(400, 400); beginRaw(PDF, "raw.pdf"); }  void draw() { line(pmouseX, pmouseY, mouseX, mouseY); }  void keyPressed() { .... Read More >
2017
08-01

saveFrame()保存序列帧

卡萨布兰卡 文档 围观1012次 留下评论
saveFrame()保存序列帧 NamesaveFrame()保存序列帧  Examplesint x = 0; void draw() { background(204); if (x < 100) { line(x, 0, x, 100); x = x + 1; } else { no.... Read More >
2017
08-01

save()保存

卡萨布兰卡 文档 围观613次 留下评论
Namesave()保存  Examplesline(20, 20, 80, 80); // Saves a TIFF file named "diagonal.tif" save("diagonal.tif"); // Saves a TARGA file named "cross.tga" line(80, 20, 20, 80); save("cross.tga"); Description.... Read More >
2017
08-01

println()换行打印

卡萨布兰卡 文档 围观888次 留下评论
println()换行打印 Nameprintln()换行打印  ExamplesString s = "The size is "; int w = 1920; int h = 1080; println(s); println(w, "x", h);  // This program writes to the cons.... Read More >
2017
08-01

printArray()打印数组

卡萨布兰卡 文档 围观564次 留下评论
NameprintArray()打印数组  Examplesfloat[] f = { 0.3, 0.4, 0.5 }; printArray(f);  // The above code prints: // [0] 0.3 // [1] 0.4 // [2] 0.5 DescriptionThe printArray() function writes array data to the t.... Read More >
2017
08-01

print()打印

卡萨布兰卡 文档 围观835次 留下评论
print()打印 Name print()打印 Examples String s = "The size is "; int w = 1920; int h = 1080; print(s); print(w, "x", h); .... Read More >
2017
08-01

year()年

卡萨布兰卡 文档 围观289次 留下评论
Nameyear()年  Examplesint d = day(); // Values from 1 - 31 int m = month(); // Values from 1 - 12 int y = year(); // 2003, 2004, 2005, etc.  String s = String.valueOf(d); text(s, 10, 28); s = St.... Read More >
2017
08-01

second()秒

卡萨布兰卡 文档 围观634次 留下评论
Namesecond()秒  Examplesvoid draw() { background(204); int s = second(); // Values from 0 - 59 int m = minute(); // Values from 0 - 59 int h = hour(); // Values from 0 - 23 line(s, 0, s,.... Read More >
2017
08-01

month()月

卡萨布兰卡 文档 围观179次 留下评论
Namemonth()月  Examplesint d = day(); // Values from 1 - 31 int m = month(); // Values from 1 - 12 int y = year(); // 2003, 2004, 2005, etc.  String s = String.valueOf(d); text(s, 10, 28); s = S.... Read More >
« 上一页4567891011121314下一页 »
  • 注册 记住我的登录信息

  • processing

    • 文章总数:469篇
    • 分类总数:5个
    • 标签总数:7个
    • 评论总数:235条
    • 页面总数:11个
    • 网站已运行:1813天
  • 分类目录

    • Sktech
    • 书籍
    • 教程
    • 文档
    • 未分类
  • 读者墙

    • 近期评论

      • DEM 3月之前说:

        很有意思,想学习一下。

      • 卡萨布兰卡 11月之前说:

      • 卡萨布兰卡 1年之前说:

      • 卡萨布兰卡 1年之前说:

      • danny 1年之前说:

    • 随机文章

      • blue()蓝色值
      • FloatDict浮点型字典类
      • reverse()反转数组顺序
      • ++ (increment)
      • 视错觉练习小结——导言
      • concat()串联两个数组
      • return返回
      • atan2()
      • processing学习笔记之简单好玩的图形(转载虎牙老师的)
      • 习作EA_立体镜头控制练习
    • 功能

      • 注册
      • 登录
      • 文章RSS
      • 评论RSS
      • WordPress.org
    • 文章归档

      • 2022年5月
      • 2020年9月
      • 2019年3月
      • 2018年10月
      • 2018年9月
      • 2018年7月
      • 2018年6月
      • 2018年5月
      • 2018年4月
      • 2018年3月
      • 2018年1月
      • 2017年12月
      • 2017年11月
      • 2017年10月
      • 2017年9月
      • 2017年8月
      • 2017年7月
      • 2017年6月
    • 2022年5月
      一 二 三 四 五 六 日
      « 9月    
       1
      2345678
      9101112131415
      16171819202122
      23242526272829
      3031  
    • 标签

      文档 (18) structure结构 (17) 教程 (6) 基础教程 (5) 展示 (1) 库 (1) 粒子 (1)
    • 近期文章

      • Arduino IDE下合宙ESP32C3使用方法
      • 带存储和重置功能的 WiFiConFig
      • esp32核心库的分享
      • 小清新画风的船
      • 测试2
    • 友情链接

      • Arduino入门与进阶
      • 一切伟大的事情都从编程和绘画开始
      • 专筑网
      • 骑驴玩漂移
    返回顶部   苏ICP备15051279号-2 © | Theme frontopen2