Using a rainbow color map on a surface.



Geomview Image (tes5.jpg) POV-Ray 2.2 Image (tes5a.jpg)

Tessel code

#
# Give color to an sphere according to the value of the Real spherical
# harmonic S3-2.
#
parametric
  map spherical
  uname u
  vname v
  urange 0 1  31 open
  vrange 0 2  31 open
  c1 1
  c2 pi*u
  c3 pi*v
  colormode full sin(theta)^2*cos(theta) * sin(2*phi)
  set camangle 70 20 30
  set zoom 1
  set background disc{<0,0,-1>,<0,0,1>,1.3 pigment{checker color White color Black scale 0.2} finish{Dull}}
  povray proyec.pov
  off proyec.off
endparametric
run povray proyec.pov +W400 +H400 +A0.2 +R3
run cjpeg -targa -quality 75 proyec.tga > proyec.jpg
end

Master document: tessel.html
Page dates: April 9, 1996 (creation), Sep 22, 2003 (last update). Admin.: victor@carbono.quimica.uniovi.es
Copyright © 1996-2003 Víctor Luaña.