hp
toc

Colors V

2015-04-03, post № 9

programming, Pygame, Python, #background, #beautiful, #change, #changing, #color, #color change, #colors, #column, #creating, #different colors, #fifth, #generates, #generator, #gradient, #image, #making, #nice looking, #number 5, #screenshot, #version V, #wallpaper

‘Colors V’ is the fifth version of my ‘Colors’ program. The four prior versions I just did not publish. This fifth version is nice and cleaned up, using easy to manipulate code and user input.
It is designed to create gradients. Going through the screen, column by column, it calculates for every pixel a color (see first function in the code). By this method it sometimes creates beautiful, sometimes more — I would say ‘interesting’ — images. The image I show here is a very basic gradient (there are way more interesting results).

Usage

  • ‘s’ to take a screenshot,
  • ‘Space’ to recreate (or start) the image creation.
colors-v.png
Source code: colors-v.py
Jonathan Frech's blog; built 2024/12/19 23:13:08 CET