回答編集履歴
1
width
test
CHANGED
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
for (int i = 0; i < width * 2; i++) {
|
38
38
|
|
39
|
-
float val = 255 * (1 + sin(NumOfCycle * i * 2 * PI /
|
39
|
+
float val = 255 * (1 + sin(NumOfCycle * i * 2 * PI / width)) / 2;
|
40
40
|
|
41
41
|
int x = frameCount % width;
|
42
42
|
|