From: Ethan M. <merritt@u.washington.edu> - 2006-10-26 21:13:17
|
On Thursday 26 October 2006 03:24 am, Richard Henwood wrote: > Hi Folks, > > I'm keen to try out transparency, on SuSE 10.1 86_64 so I got the > latest CVS: > and make fell over: > > ... > graphics.c: In function =E2=80=98place_rectangles=E2=80=99: > graphics.c:1415: error: expected expression before =E2=80=98else=E2=80=99 My fault, sorry. Although I did test-build it. I really can't explain why the test-build worked, but the commited file was missing a brace. I have a standard patch/build/commit-on-success script that is supposed to prevent this sort of thing. Anyhow, I see it's now fixed in cvs. As an apology, I offer the following test script for transparency. The output is rather nice in png or wxt. # # Translucent tori with pm3d coloring # unset border set style fill transparent solid 0.30 border set dummy u,v unset key set style line 2 linetype 2 linecolor rgb "#a0a0f0" linewidth 0.500 point= type=20 2 pointsize default set object 1 rect from screen 0, 0, 0 to screen 1, 1, 0 behind \ lw 1.0 fc rgb "gray" fillstyle solid 1.00 border -1 set parametric set view 64, 345, 1.24375, 0.995902 set isosamples 50, 20 set noxtics set noytics set noztics set title "Interlocking Tori - PM3D surface with depth sorting and transpar= ency" set urange [ -3.14159 : 3.14159 ] set vrange [ -3.14159 : 3.14159 ] set pm3d depthorder set pm3d interpolate 1,1 flush begin noftriangles hidden3d 2 corners2color = mean set palette rgbformulae 8, 9, 7 splot cos(u)+.5*cos(u)*cos(v),sin(u)+.5*sin(u)*cos(v),.5*sin(v) with pm3d, \ 1+cos(u)+.5*cos(u)*cos(v),.5*sin(v),sin(u)+.5*sin(u)*cos(v) with pm3d =2D-=20 Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle WA |