main.pde
String str = "Processing & Shader Joy ~";
ArrayList<Type> str_arr = new ArrayList<Type>();PFont font;
//let sdgreg;
void preload() {font = createFont("f", 97);//font = loadFont("LetterGothicStd-32.vlw");
}void setup() {size(640, 480, P3D);preload();String[] strs = str.split(" ");/// @note 随机添加单词for (int i = 0; i < strs.length*20; i++) {float x = random(-width / 2, width / 2);float y = random(-height / 2, height / 2);float z = random(-width*5, width/2);str_arr.add(new Type(strs[i%strs.length], x, y, z));}}void draw() {background(0,0,0);translate(width/2, height/2);for (int i = 0; i <
本文发布于:2024-01-28 03:16:59,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/17063830254400.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |