iOS rainbow colors array

前端 未结 3 951
忘掉有多难
忘掉有多难 2021-01-02 05:49

I am setting up an array that has a transition throughout he colors of the rainbow. Right now I\'ve just manually entered the colors in the array but there are too many to m

3条回答
  •  清歌不尽
    2021-01-02 06:45

    3 nested for loops and 3 variables r, g, b, and add 0.25 each time the loop occurs.

提交回复
热议问题