点滅の処理は繰り返しの繰り返しで処理をいれました。
多重ループはおもたいですが、特定の範囲の処理を繰り返すときに力を発揮します。
今回のように明るくしたり後暗くするや、右へ行って左へ行くなどにも使えます。
The blinking effect was implemented using nested loops.
Although nested loops can be computationally expensive, they are effective for repeating processes within a specific range.
In the example, they were used for effects such as fading from bright to dark and moving objects from right to left.
次回