hp
toc

Gradient Triangles

2015-10-11, post № 72

programming, Pygame, Python, #3-gon, #background, #gradient, #triangles, #vector, #vector mathematics, #vectors, #wallpaper

This program uses vector mathematics and colors to create triangular gradient. By simply left-clicking you create three points which then will be filled in with color.

Controls

  • Left click adds a new position,
  • ‘Space’ saves a screenshot.
gradient-triangles-1.png
gradient-triangles-2.png
gradient-triangles-4.png
Source code: gradient-triangles.py
Jonathan Frech's blog; built 2024/08/31 22:59:44 CEST