File: test_gradient.py

package info (click to toggle)
lazpaint 7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 56,000 kB
  • sloc: pascal: 277,538; python: 2,494; makefile: 233; sh: 221
file content (14 lines) | stat: -rw-r--r-- 458 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from lazpaint import tools, image, colors, dialog

tools.choose(tools.GRADIENT)
tools.mouse([
    (0,0), (image.get_width()/2, image.get_height()/2)
  ])
tools.set_back_gradient_colors([colors.GREEN, colors.RED])
tools.set_back_gradient_interpolation(tools.GRADIENT_INTERPOLATION_LINEAR_HSL_POSITIVE)
tools.set_back_gradient_repetition(tools.GRADIENT_REPETITION_REPEAT)
tools.keys([tools.KEY_RETURN])

dialog.show_message(tools.get_back_gradient_colors())