https://processingfoundation.org/fellowships
codingcomic
http://codingcomic.com/#codingcomic
2. 上週事件後續發展&討論
3. 昨天在雷亞討論的幾個議題分享
搜尋google io rayark 或 rayark
Mandora蔓陀蘿(與魚乾)
https://www.youtube.com/watch?v=2N7jRt7DrMU
4. Project Tango
https://get.google.com/tango/
5. HTC Vive 三創
6. 歐陽明老師分享 SIGGRAPH Asia 2016 (12/5-8) 的展示
7. 什麼是VR
VR Spray - 與阿諾老師合作
https://www.youtube.com/watch?v=0RC1o4n_bU0&spfreload=10
Kingspray Graffiti Simulator - Playback - Dank
https://www.youtube.com/watch?v=uuOkdOMlkXE
google VR daydream
https://vr.google.com/daydream/實作
heart curve
http://mathworld.wolfram.com/HeartCurve.html
做愛心


void setup(){
size(500,500);
}
void draw(){
for(float theta=0;theta<PI*2;theta+=0.01){
float r=1-sin(theta),r2=1-sin(theta+0.01);
float x=r*cos(theta),y=r*sin(theta);
float x2=r2*cos(theta+0.01),y2=r2*sin(theta+0.01);
line(250+100*x,250-100*y,250+100*x2,250-100*y2);
}
}
畫愛心軌跡


void setup(){
size(500,500);
}
void draw(){
for(float theta=0;theta<frameCount/100.0;theta+=0.01){
float r=1-sin(theta),r2=1-sin(theta+0.01);
float x=r*cos(theta),y=r*sin(theta);
float x2=r2*cos(theta+0.01),y2=r2*sin(theta+0.01);
line(250+100*x,250-100*y,250+100*x2,250-100*y2);
}
}
sin、cos畫愛心原理


void setup(){
size(500,500);
}
void draw(){
for(float theta=0;theta<PI*2;theta+=0.01){
point(250+100*cos(theta),250+100*sin(theta));
}
//float r=1-sin(theta),r2=1-sin(theta+0.01);
//float x=r*cos(theta),y=r*sin(theta);
//float x2=r2*cos(theta+0.01),y2=r2*sin(theta+0.01);
//line(250+100*x,250-100*y,250+100*x2,250-100*y2);
//}
}


void setup(){
size(500,500);
}
void draw(){
//for(float theta=0;theta<PI*2;theta+=0.01){
float theta=0;
ellipse(250+100*cos(theta),250+100*sin(theta),10,10);
theta=PI/2;
ellipse(250+100*cos(theta),250+100*sin(theta),10,10);
theta=PI;
ellipse(250+100*cos(theta),250+100*sin(theta),10,10);
//float r=1-sin(theta),r2=1-sin(theta+0.01);
//float x=r*cos(theta),y=r*sin(theta);
//float x2=r2*cos(theta+0.01),y2=r2*sin(theta+0.01);
//line(250+100*x,250-100*y,250+100*x2,250-100*y2);
//}
}


void setup(){
size(500,500);
}
void draw(){
for(float theta=0;theta<PI*2;theta+=radians(30)){
line(250+100*cos(theta),250+100*sin(theta),250,250);
}
//float theta=0;
//ellipse(250+100*cos(theta),250+100*sin(theta),10,10);
//theta=PI/2;
//ellipse(250+100*cos(theta),250+100*sin(theta),10,10);
//theta=PI;
//ellipse(250+100*cos(theta),250+100*sin(theta),10,10);
//float r=1-sin(theta),r2=1-sin(theta+0.01);
//float x=r*cos(theta),y=r*sin(theta);
//float x2=r2*cos(theta+0.01),y2=r2*sin(theta+0.01);
//line(250+100*x,250-100*y,250+100*x2,250-100*y2);
//}
}


void setup(){
size(500,500);
}
void draw(){
for(float theta=0;theta<PI*2;theta+=radians(30)){
line(250+100*cos(theta),250+100*sin(theta),250,250);
line(250+100*cos(theta),250+100*sin(theta),250+100*cos(theta),250);
}
//float theta=0;
//ellipse(250+100*cos(theta),250+100*sin(theta),10,10);
//theta=PI/2;
//ellipse(250+100*cos(theta),250+100*sin(theta),10,10);
//theta=PI;
//ellipse(250+100*cos(theta),250+100*sin(theta),10,10);
//float r=1-sin(theta),r2=1-sin(theta+0.01);
//float x=r*cos(theta),y=r*sin(theta);
//float x2=r2*cos(theta+0.01),y2=r2*sin(theta+0.01);
//line(250+100*x,250-100*y,250+100*x2,250-100*y2);
//}
}
紅色愛心


void setup(){
size(400,400);
noStroke();
}
void draw(){
for(float x=-2;x<=2;x+=0.01){
for(float y=-2;y<=2;y+=0.01){
if((x*x+y*y-1)*(x*x+y*y-1)*(x*x+y*y-1)-x*x*y*y*y <0)
fill(255,0,0);
else
fill(255);
rect(200+x*100,200-y*100,10,10);
}
}
}
sin波、cos波


void setup(){
size(400,400);
}
void draw(){
float angle=-radians(frameCount)/3;
rect(0,0,200,200);
stroke(0,0,255);
ellipse(100,100,100,100);
line(100,100,100+cos(angle)*50,100+sin(angle)*50);
//rect(200,0,200,200);
ellipse(200+abs(angle)*30,100+sin(angle)*50,10,10);
ellipse(100+cos(angle)*50,200+abs(angle)*30,10,10);
}
*把 processing 檔案變 gif 動畫檔
下載 gif animation 放到 Processing/libraries
https://github.com/01010101/GifAnimation
沒有留言:
張貼留言