1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: POV-Ray scene used to generate clip for splash
4 // Author: Wlodzimierz ABX Skiba
8 // Copyright: (c) Wlodzimierz Skiba
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
14 // Rendering options : +FN +W80 +H60 +AM1 +A0.05 +R5 +J0 +KFF99
17 #include "rad_def.inc"
24 background { colour White }
26 #declare Texts = array[ 3 ];
28 #declare Texts[0] = "PRESS";
29 #declare Texts[1] = "ANY";
30 #declare Texts[2] = "KEY";
32 camera{ orthographic look_at .5 location .5-z right 1.05*x up 1.05*y }
34 #declare Items = dimension_size( Texts , 1 );
36 #declare Objects = array[ Items + 1 ];
38 #declare f_line = function(x,xa,ya,xb,yb){((yb-ya)/(xb-xa))*(x-xa)+ya};
41 #while ( Counter <= Items )
42 #if ( Counter < Items )
43 #declare Object = text{ ttf "crystal.ttf" Texts[ Counter ] 1 0 };
45 #declare Object = Objects[ Items ];
48 #declare M = max_extent( Object );
49 #declare m = min_extent( Object );
51 #declare Objects[ Counter ] = object{ Object translate -m + z*Counter scale <1/S.x,1/S.y,1> };
52 #declare Objects[ Items ] =
53 #if ( Counter = 0 | Counter = Items )
57 object{ Objects[ Items ] translate y*1.1 }
59 object{ Objects[ Counter ] }
62 #declare X0=Counter/(Items+1);
64 #declare X1=(Counter+1)/(Items+1);
66 #declare X2=(Counter+2)/(Items+1);
69 #declare increase=f_line(clock,X0,Y0,X1,Y1);
70 #declare decrease=f_line(clock,X1,Y1,X2,Y2);
71 #declare change=min(increase,decrease);
72 #declare level=max(change,0);
76 pigment{ rgb level transmit 1-level }
78 #declare Counter = Counter + 1;