61c421bf |
1 | puts "========" |
2 | puts "OCC23652" |
3 | puts "========" |
4 | |
5 | ############################################################################### |
6c8856a0 |
6 | # Non zoomable text with alignment slides away when zooming view |
61c421bf |
7 | ############################################################################### |
6c8856a0 |
8 | |
6fb1a930 |
9 | vfont add [locate_data_file DejaVuSans.ttf] SansFont |
10 | |
6c8856a0 |
11 | vinit |
12 | vtrihedron tri |
aaf8d6a9 |
13 | vdrawtext text0 Default -pos 0.0 0.0 0.0 -color WHITE -halign left -valign bottom -angle 0 -zoom 1 -height 20 -aspect regular -font SansFont |
14 | vdrawtext text1 Right_Align -pos 0.0 0.0 0.0 -color WHITE -halign right -valign bottom -angle 0 -zoom 1 -height 20 -aspect regular -font SansFont |
61c421bf |
15 | |
16 | set scale 3.1783114563761763 |
61c421bf |
17 | set proj_X 0.57735025882720947 |
18 | set proj_Y -0.57735025882720947 |
19 | set proj_Z 0.57735025882720947 |
20 | set up_X -0.40824827551841736 |
21 | set up_Y 0.40824827551841736 |
22 | set up_Z 0.81649655103683472 |
23 | set at_X 0 |
24 | set at_Y 0 |
25 | set at_Z 0 |
26 | |
197ac94e |
27 | vviewparams -scale ${scale} -proj ${proj_X} ${proj_Y} ${proj_Z} -up ${up_X} ${up_Y} ${up_Z} -at ${at_X} ${at_Y} ${at_Z} |
61c421bf |
28 | |
3af9db62 |
29 | set x_coord 210 |
30 | set y_coord 204 |
61c421bf |
31 | |
32 | checkcolor $x_coord $y_coord 0.6 0.6 0.6 |
33 | |
5747059b |
34 | checkview -screenshot -3d -path ${imagedir}/${test_image}.png |