Generate random but beautiful gradients in a super simple way.
You can check out more examples here.
- Super simple usage
- No way to choose colors
- PNG only
$ pip install gradient-generator
from gradient_generator import generate_gradient
image = generate_gradient(640, 480)
image
<_io.BytesIO object at 0x10ce70040>
with open('test.png', 'wb') as f:
f.write(image.getbuffer())
If you need help or found a bug, consider opening an issue on the project.
The source code for this project is licensed under the MIT license, which you can find in the MIT-LICENSE.txt file.