home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / gfx / 3d / irit / scripts / printf.irt < prev    next >
Encoding:
Text File  |  1994-09-17  |  836 b   |  21 lines

  1. #
  2. # Simple examples for the capability of the PRINTF command.
  3. #
  4. printf("this is a line.\\n", nil());
  5. printf("this is a string \"%s\".\\n", list("STRING"));
  6. printf("this is an integer %-8d, %u, %3o, %05x\\n",
  7.      list(pi * 1000, pi * 1000, pi * 1000, pi * 1000));
  8. printf("this is a float %lf %8.2lg %9.5E\\n", list(pi, pi, pi));
  9. printf("this is a vector [%8.5lvf], [%5.2lpg]\\n",
  10.     list(vector(1,2,3), vector(1,2,3)));
  11. printf("this is a point [%8.5lpf], [%5.2lpg]\\n",
  12.     list(point(1,2,3), point(1,2,3)));
  13. printf("this is a plane %lPf\\n",
  14.     list(plane(sin(33), sin(44), sin(55), sin(66))));
  15. printf("this is a object %Df, until here...\\n", list(axes));
  16.  
  17. iritState("DumpLevel", 9);
  18. printf("this is a object %8.6lDf, until here...\\n", list(axes));
  19. printf("this is a object %10.8lDg, until here...\\n", list(axes));
  20. iritState("DumpLevel", 1);
  21.