How can I cycle through hex color codes in PHP?

前端 未结 9 2217
野的像风
野的像风 2021-01-06 06:08

I want an array where each field in the array contains a color code

array(0 => \'#4CFF00\', 1 => \'#FFE97F\')

And I want this to go t

9条回答
  •  时光取名叫无心
    2021-01-06 06:33

    00FF00 is Green 000000 is Black. all you have to do it increment one color at a time while decrementing the other colors. Stick it in a loop, where it be php, javascript or whatever and go.

    EDIT: Here is a link to code that shows how to loop through Hex color codes.

提交回复
热议问题