Is it possible to create an array of colors with PHP?
What I'm trying to do:
- Select a start and end color
- Choose an amount of "steps"
- Create an array of those colors blending together (as a gradient) with that amount of steps.
Example:
Start color: White
End color: Black
Steps: 3
Result:
- "white",
- "gray",
- "black"
Of course the colors would be in RGB/hex
Anyone with a solution on this?