谁会processing软件帮忙做个梦幻的主题
processing吧
全部回复
仅看楼主
level 4
fgvrveec 楼主
[玫瑰][玫瑰][玫瑰][玫瑰][玫瑰][玫瑰][玫瑰][玫瑰][玫瑰][玫瑰]求大神帮忙谢谢了万分感谢
2016年05月25日 14点05分 1
level 4
fgvrveec 楼主
快来人帮忙
2016年05月25日 14点05分 2
level 1
是什么样的需求呢?
2016年05月26日 03点05分 3
亲爱的求帮忙就是大学生的关于梦幻的作品,简单点就行了
2016年05月26日 03点05分
要求不需要太高
2016年05月26日 03点05分
有互动,有位置缩放
2016年05月26日 03点05分
@fgvrveec 你们没有要求300行代码吗?
2016年06月08日 05点06分
level 1
一看就知道同学你是我们学校的。哈哈哈哈
2016年05月27日 12点05分 4
亲爱的你会做吗
2016年05月27日 13点05分
亲爱的你会做吗
2016年05月27日 13点05分
绍兴的?
2016年05月27日 14点05分
@fgvrveec 对啊,可是我也不会做,拖到今天了,再不做就来不及了,可是都不知道怎么下手
2016年06月08日 05点06分
level 5
不是我写的 别问我 我也不想回答 我只做一次好心人
ArrayList branches = new ArrayList();
int fillColor = 255, backgroundColor = 0, maxSize = 65;
boolean doOnce = true;
void setup(){
size(640, 640);
stroke(0, 150, 255, 65);
for(int i = 0; i < 65; i++){branches.add(new Branch());}
}
void draw(){
background(backgroundColor);
fill(fillColor);
for(int i = 0; i < branches.size(); i++){
Branch b = (Branch) branches.get(i);
pushMatrix();
translate(width/2, height);
rotate(radians(b.startAngle));
b.branch(b.segments);
popMatrix();
}
}
class Branch {
float segments, startAngle, angle, theta, num;
Branch(){
segments = random(30, 100);
startAngle = random(-90, 90);
angle = map(startAngle, -90, 90, -10, 10);
}
void branch(float len){
len *= 0.75;
float t = map(len, 1, 70, 1, 10);
theta = angle + sin(len+num) * 5;
strokeWeight(t);
//fill(0, 150, 255, 30);
//bezier(0, 0, 0, t, -len/2, t, 0, -len);
//bezier(0, 0, 0, t, len/2, t, 0, -len);
line(0, 0, 0, -len);
//fill(fillColor);
ellipse(0, 0, t, t);
translate(0, -len);
if(len > 5){
pushMatrix();
rotate(radians(-theta));
branch(len);
popMatrix();
}else{
for(int i = 0; i < 360; i+=30){
float x = sin(radians(i)) * 10;
float y = cos(radians(i)) * 10;
line(0, 0, x, y);
}
}
num += 0.003;
}
}
void mousePressed(){
if(doOnce && backgroundColor == 255){
backgroundColor = 0;
fillColor = 255;
doOnce = false;
}
if(doOnce && backgroundColor == 0){
backgroundColor = 255;
fillColor = 0;
doOnce = false;
}
}
void mouseReleased(){
doOnce = true;
}
2016年05月28日 05点05分 5
level 4
fgvrveec 楼主
谢谢亲爱的
2016年05月28日 05点05分 6
level 1
越秀的吧
2016年05月29日 15点05分 7
哈哈哈
2016年05月30日 00点05分
所以同越秀的小学妹想问问同作业的代码还有嘛[乖][乖][乖]
2018年12月25日 04点12分
level 1
同学你好
2016年05月31日 13点05分 8
level 1
同越秀,我们也是这个,不会做啊[泪]
2016年06月01日 00点06分 9
level 3
同求呀呀呀呀
2019年01月03日 18点01分 10
1