0031039: Visualization - add elliptical gradient background style

Added new elliptical gradient fill method and updated vbackground command.
Renamed enum values of Aspect_GradientFillMethod and defined aliases for old ones.
Changed draw mode in OpenGl_BackgroundArray from triangle-strip to GL_TRIANGLES.
This commit is contained in:
achesnok
2021-09-21 18:42:21 +03:00
committed by kgv
parent 3be25c1170
commit 9af0d66b84
11 changed files with 182 additions and 101 deletions

View File

@@ -7,10 +7,13 @@ pload VISUALIZATION
vbackground -default -gradient BLACK GRAY25 -gradientMode HORIZONTAL
vinit View1 w=400 h=400
if { [vreadpixel 399 100 -rgb -name] != "GRAY25" } { puts "Error: bug with default gradient color is reproduced." }
vdump $imagedir/${casename}_v1.png
vinit View2 w=400 h=400
if { [vreadpixel 399 100 -rgb -name] != "GRAY25" } { puts "Error: bug with default gradient color is reproduced." }
vdump $imagedir/${casename}_v2.png
vbackground -default -color GRAY50
vinit View3
if { [vreadpixel 100 100 -rgb -name] != "GRAY50" } { puts "Error: bug with default background color is reproduced." }
vdump $imagedir/${casename}_v3.png

View File

@@ -0,0 +1,10 @@
puts "============"
puts "0031039: Visualization - add elliptical gradient background style"
puts "============"
puts ""
pload VISUALIZATION
vinit View1
vbackground -gradient WHITE BLACK -gradientMode ELLIPTICAL
vdump $imagedir/${casename}.png