0030969: Coding Rules - refactor Quantity_Color.cxx color table definition
[occt.git] / tests / bugs / vis / bug25775
1 puts "========"
2 puts "0025775: Default Gradient Backgound in V3d_Viewer has no effect in new created V3d_View"
3 puts "========"
4 puts ""
5
6 pload VISUALIZATION
7 vbackground -default -gradient BLACK GRAY25 -gradientMode HORIZONTAL
8 vinit View1 w=400 h=400
9 if { [vreadpixel 399 100 -rgb -name] != "GRAY25" } { puts "Error: bug with default gradient color is reproduced." }
10
11 vinit View2 w=400 h=400
12 if { [vreadpixel 399 100 -rgb -name] != "GRAY25" } { puts "Error: bug with default gradient color is reproduced." }
13
14 vbackground -default -color GRAY50
15 vinit View3
16 if { [vreadpixel 100 100 -rgb -name] != "GRAY50" } { puts "Error: bug with default background color is reproduced." }