0022785: Draw Harness - add possibility to remove a text drawn by the command vdrawtext
[occt.git] / tests / bugs / vis / bug24555
CommitLineData
6788f423 1puts "============"
2puts "OCC24555"
3puts "============"
4puts ""
5#######################################################################
6# Visualization - the same text is rendered with shift at second time
7#######################################################################
8
9vinit
10vclear
11vaxo
29e2c6d2 12vdrawtext text0 "This program" -pos 0 0 0 -color 0.0 1.0 0.0 -halign left -valign bottom -angle 0 -zoom 0 -height 50 -aspect regular -font Arial
6788f423 13
29e2c6d2 14vdrawtext text1 "This program" -pos 0 0 0 -color 1.0 0.0 0.0 -halign left -valign bottom -angle 0 -zoom 0 -height 50 -aspect regular -font Arial
6788f423 15
16set x 346
17set y 190
18
19set R 0
20set G 0.9843137264251709
21set B 0
22
ccadc126 23if {"[vreadpixel $x $y rgb]" == "$R $G $B" } {
6788f423 24 puts "Error : color is bad"
25} else {
26 puts "OK : color is good"
27}
28
29set only_screen 1