Processing資料(5) 正弦波と極座標

reona396
正弦波と極座標 
Processing資料(5)
正弦波
float theta; 
void setup() { 
size(580, 350); 
background(255); 
} 
void draw() { 
background(255); 
for (int i = 0; i < 30; i++) { 
ellipse(i*20, height/2 + 100*sin(radians(theta + i * 10)), 20, 20); 
} 
theta++; 
}
float theta; 
void setup() { 
size(580, 350); 
background(255); 
} 
void draw() { 
background(255); 
for (int i = 0; i < 30; i++) { 
ellipse(i*20, height/2 + 100*sin(radians(theta + i * 10)), 20, 20); 
} 
theta++; 
}
float theta; 
void setup() { 
size(580, 350); 
background(255); 
} 
void draw() { 
background(255); 
for (int i = 0; i < 30; i++) { 
ellipse(i*20, height/2 + 50*sin(radians(theta + i * 10)), 20, 20); 
} 
theta++; 
}
Processing資料(5) 正弦波と極座標
float theta; 
void setup() { 
size(580, 350); 
background(255); 
} 
void draw() { 
background(255); 
for (int i = 0; i < 30; i++) { 
ellipse(i*20, height/2 + 100*sin(radians(theta + i * 10)), 20, 20); 
} 
theta++; 
}
float theta; 
void setup() { 
size(580, 350); 
background(255); 
} 
void draw() { 
background(255); 
for (int i = 0; i < 30; i++) { 
ellipse(i*20, height/2 + 100*sin(radians(theta + i * 30)), 20, 20); 
} 
theta++; 
}
Processing資料(5) 正弦波と極座標
極座標 
θ 
r 
(r*cos(θ),r*sin(θ))
円運動
int r = 150; 
float x; 
float y; 
int theta; 
void setup() { 
size(400, 400); 
background(255); 
} 
void draw() { 
fill(255, 30); 
noStroke(); 
rect(0, 0, width, height); 
x = width/2 + r * cos(radians(theta)); 
y = height/2 + r * sin(radians(theta)); 
fill(0); 
ellipse(x, y, 30, 30); 
theta++; 
}
1 de 12

Recomendados

Processing資料(8) 文字Processing資料(8) 文字
Processing資料(8) 文字reona396
599 visualizações5 slides
Proga 0608Proga 0608
Proga 0608Atsushi Tadokoro
621 visualizações41 slides
Know more processingKnow more processing
Know more processingYukiAizawa1
239 visualizações36 slides
10CSL67 CG LAB PROGRAM 410CSL67 CG LAB PROGRAM 4
10CSL67 CG LAB PROGRAM 4Vanishree Arun
517 visualizações29 slides
Proga 0518Proga 0518
Proga 0518Atsushi Tadokoro
735 visualizações26 slides

Mais conteúdo relacionado

Mais procurados

ECMAScript 6 major changesECMAScript 6 major changes
ECMAScript 6 major changeshayato
704 visualizações14 slides
Programa expresiones regularesPrograma expresiones regulares
Programa expresiones regularesAnel Sosa
91 visualizações15 slides
functionsfunctions
functionssmirn4
295 visualizações11 slides
Pre-Calc 30S May 2Pre-Calc 30S May 2
Pre-Calc 30S May 2jchartiersjsd
107 visualizações5 slides

Mais procurados(18)

ECMAScript 6 major changesECMAScript 6 major changes
ECMAScript 6 major changes
hayato704 visualizações
Corner Stitching in Swift @ Base Labs - KrakowCorner Stitching in Swift @ Base Labs - Krakow
Corner Stitching in Swift @ Base Labs - Krakow
Fernando Olivero367 visualizações
PYTHON PROGRAMS FOR BEGINNERSPYTHON PROGRAMS FOR BEGINNERS
PYTHON PROGRAMS FOR BEGINNERS
JEETPRATAPSINGH37 visualizações
Programa expresiones regularesPrograma expresiones regulares
Programa expresiones regulares
Anel Sosa91 visualizações
functionsfunctions
functions
smirn4295 visualizações
Pre-Calc 30S May 2Pre-Calc 30S May 2
Pre-Calc 30S May 2
jchartiersjsd107 visualizações
ARTDM 170, Week13: ProcessingARTDM 170, Week13: Processing
ARTDM 170, Week13: Processing
Gilbert Guerrero432 visualizações
Proga 0706Proga 0706
Proga 0706
Atsushi Tadokoro610 visualizações
Simulate bouncing ball in pygameSimulate bouncing ball in pygame
Simulate bouncing ball in pygame
Dr Anurekha R1.4K visualizações
Engineering Graphics Engineering Graphics
Engineering Graphics
Nishit Karkar86 visualizações
4.5   tan and cot.ppt worked4.5   tan and cot.ppt worked
4.5 tan and cot.ppt worked
Jonna Ramsey1.6K visualizações
Maple Code for Steepest DescentMaple Code for Steepest Descent
Maple Code for Steepest Descent
Jeremy Lane736 visualizações
Kwp2 100107Kwp2 100107
Kwp2 100107
guest2008f90559 visualizações
IncludeInclude
Include
Munkherdene Batsaikhan103 visualizações
Simulate elliptical orbit in pygameSimulate elliptical orbit in pygame
Simulate elliptical orbit in pygame
Dr Anurekha R1.9K visualizações
Dfs implementation in cDfs implementation in c
Dfs implementation in c
HapPy SumOn71 visualizações

Similar a Processing資料(5) 正弦波と極座標

Gauss in javaGauss in java
Gauss in javabaxter89
4K visualizações8 slides
Proga 0622Proga 0622
Proga 0622Atsushi Tadokoro
650 visualizações47 slides
Proga 090525Proga 090525
Proga 090525Atsushi Tadokoro
612 visualizações28 slides
Raspberry Pi à la GroovyFXRaspberry Pi à la GroovyFX
Raspberry Pi à la GroovyFXStephen Chin
4.5K visualizações53 slides
Proga 0601Proga 0601
Proga 0601Atsushi Tadokoro
495 visualizações28 slides

Similar a Processing資料(5) 正弦波と極座標(13)

Graphical representation of StackGraphical representation of Stack
Graphical representation of Stack
Sanjay Kumar Chakravarti8K visualizações
Gauss in javaGauss in java
Gauss in java
baxter894K visualizações
Proga 0622Proga 0622
Proga 0622
Atsushi Tadokoro650 visualizações
Proga 090525Proga 090525
Proga 090525
Atsushi Tadokoro612 visualizações
Raspberry Pi à la GroovyFXRaspberry Pi à la GroovyFX
Raspberry Pi à la GroovyFX
Stephen Chin4.5K visualizações
Proga 0601Proga 0601
Proga 0601
Atsushi Tadokoro495 visualizações
ARTDM 170, Week 13: Text Elements + ArraysARTDM 170, Week 13: Text Elements + Arrays
ARTDM 170, Week 13: Text Elements + Arrays
Gilbert Guerrero538 visualizações
Proga 0629Proga 0629
Proga 0629
Atsushi Tadokoro552 visualizações
Mobile Gameand Application with J2MEMobile Gameand Application with J2ME
Mobile Game and Application with J2ME
Jenchoke Tachagomain382 visualizações
Mobile Gameand Application withJ2ME  - Collision DetectionMobile Gameand Application withJ2ME  - Collision Detection
Mobile Game and Application with J2ME - Collision Detection
Jenchoke Tachagomain809 visualizações
662305 10662305 10
662305 10
Nitigan Nakjuatong305 visualizações
Java cheatsheetJava cheatsheet
Java cheatsheet
Anass SABANI267 visualizações

Último(20)

[2023] Putting the R! in R&D.pdf[2023] Putting the R! in R&D.pdf
[2023] Putting the R! in R&D.pdf
Eleanor McHugh31 visualizações
ChatGPT and AI for Web DevelopersChatGPT and AI for Web Developers
ChatGPT and AI for Web Developers
Maximiliano Firtman143 visualizações
Web Dev - 1 PPT.pdfWeb Dev - 1 PPT.pdf
Web Dev - 1 PPT.pdf
gdsczhcet44 visualizações
Architecting multi-cloud ready applicationsArchitecting multi-cloud ready applications
Architecting multi-cloud ready applications
Swaminathan Vetri43 visualizações
ThroughputThroughput
Throughput
Moisés Armani Ramírez25 visualizações
METHOD AND SYSTEM FOR PREDICTING OPTIMAL LOAD FOR WHICH THE YIELD IS MAXIMUM ...METHOD AND SYSTEM FOR PREDICTING OPTIMAL LOAD FOR WHICH THE YIELD IS MAXIMUM ...
METHOD AND SYSTEM FOR PREDICTING OPTIMAL LOAD FOR WHICH THE YIELD IS MAXIMUM ...
Prity Khastgir IPR Strategic India Patent Attorney Amplify Innovation22 visualizações
Java 21 and Beyond- A Roadmap of Innovations  .pdfJava 21 and Beyond- A Roadmap of Innovations  .pdf
Java 21 and Beyond- A Roadmap of Innovations .pdf
Ana-Maria Mihalceanu49 visualizações
Photowave Presentation Slides - 11.8.23.pptxPhotowave Presentation Slides - 11.8.23.pptx
Photowave Presentation Slides - 11.8.23.pptx
CXL Forum110 visualizações
Micron CXL product and architecture updateMicron CXL product and architecture update
Micron CXL product and architecture update
CXL Forum21 visualizações
WEEK 1_ IT Network Engineering Class.pptxWEEK 1_ IT Network Engineering Class.pptx
WEEK 1_ IT Network Engineering Class.pptx
dclmict180 visualizações
ISWC2023-McGuinnessTWC16x9FinalShort.pdfISWC2023-McGuinnessTWC16x9FinalShort.pdf
ISWC2023-McGuinnessTWC16x9FinalShort.pdf
Deborah McGuinness80 visualizações

Processing資料(5) 正弦波と極座標

  • 3. float theta; void setup() { size(580, 350); background(255); } void draw() { background(255); for (int i = 0; i < 30; i++) { ellipse(i*20, height/2 + 100*sin(radians(theta + i * 10)), 20, 20); } theta++; }
  • 4. float theta; void setup() { size(580, 350); background(255); } void draw() { background(255); for (int i = 0; i < 30; i++) { ellipse(i*20, height/2 + 100*sin(radians(theta + i * 10)), 20, 20); } theta++; }
  • 5. float theta; void setup() { size(580, 350); background(255); } void draw() { background(255); for (int i = 0; i < 30; i++) { ellipse(i*20, height/2 + 50*sin(radians(theta + i * 10)), 20, 20); } theta++; }
  • 7. float theta; void setup() { size(580, 350); background(255); } void draw() { background(255); for (int i = 0; i < 30; i++) { ellipse(i*20, height/2 + 100*sin(radians(theta + i * 10)), 20, 20); } theta++; }
  • 8. float theta; void setup() { size(580, 350); background(255); } void draw() { background(255); for (int i = 0; i < 30; i++) { ellipse(i*20, height/2 + 100*sin(radians(theta + i * 30)), 20, 20); } theta++; }
  • 10. 極座標 θ r (r*cos(θ),r*sin(θ))
  • 12. int r = 150; float x; float y; int theta; void setup() { size(400, 400); background(255); } void draw() { fill(255, 30); noStroke(); rect(0, 0, width, height); x = width/2 + r * cos(radians(theta)); y = height/2 + r * sin(radians(theta)); fill(0); ellipse(x, y, 30, 30); theta++; }