回答編集履歴

1

動画追加

2024/08/31 16:14

投稿

TN8001
TN8001

スコア10022

test CHANGED
@@ -3,10 +3,9 @@
3
3
  「[The Nature of Code](https://natureofcode.com/)」あるいはその翻訳本ですね?
4
4
  [The Nature of Code - Google 検索](https://www.google.com/search?q=The+Nature+of+Code)
5
5
 
6
- [noc-examples-processing/chp03_oscillation/Exercise_3_02_cannon at master · nature-of-code/noc-examples-processing](https://github.com/nature-of-code/noc-examples-processing/tree/master/chp03_oscillation/Exercise_3_02_cannon)
7
-
8
6
  出典ははっきり明示してください。
9
7
  もしコード先頭にクレジット表記があるなら外さないでください。
8
+ [noc-examples-processing/chp03_oscillation/Exercise_3_02_cannon at master · nature-of-code/noc-examples-processing](https://github.com/nature-of-code/noc-examples-processing/tree/master/chp03_oscillation/Exercise_3_02_cannon)
10
9
 
11
10
  > ・発射された球に軌跡が線で出るようにする。
12
11
 
@@ -15,6 +14,7 @@
15
14
  void draw() {
16
15
  //background(255);
17
16
  ```
17
+ ![連続写真動画](https://ddjkaamml8q8x.cloudfront.net/questions/2024-09-01/8a570703-ab00-44ff-ac1e-f04ae27efce0.gif)
18
18
 
19
19
  あるいは残像を残すようなテクニックがあります。
20
20
  これは`NOC_1_2_bouncingball_vectors`で使われています。
@@ -25,6 +25,7 @@
25
25
  fill(255, 10);
26
26
  rect(0, 0, width, height);
27
27
  ```
28
+ ![残像動画](https://ddjkaamml8q8x.cloudfront.net/questions/2024-09-01/b7b4afdb-6f6e-407f-8f8f-6ba23e7a4fa5.gif)
28
29
 
29
30
  > 色々とネットなどで調べてはみたのですが、該当しそうな情報がなく、完全に手づまりな状況です
30
31
 
@@ -34,6 +35,5 @@
34
35
  ---
35
36
 
36
37
  それとも軌跡が「線で出る」というところが重要ですか?
37
-
38
38
  その瞬間の弾の位置はわかってるので、`ArrayList<PVector>`にため込んでいく感じでしょうか。
39
39
  [ArrayList of objects / Examples / Processing.org](https://processing.org/examples/arraylistclass.html)