Home » Personal collection » Acorn hard disk » apps » QRT » Images/Plus/QRT

Images/Plus/QRT

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn hard disk » apps » QRT
Filename: Images/Plus/QRT
Read OK:
File size: 13C3 bytes
Load address: 0000
Exec address: 0000
File contents
{**************************************************

    QRT source for abstract thing shaped sort of
    like a dumbell supported by levitating
    blue rings.  (it might well bring millions if
    auctioned off as modern art).

    - Steve Koren   9 Jun 88

 **************************************************}


FILE_NAME = Plus.RAW

{ *********   Some pattern definitions ********** }

PATTERN ( x_size = 16,                 { ** A stripe pattern ** }
          y_size = 8,                  { ** for the sphere ** }
          name   = MIRROR_STRIPE,

          RECTANGLE (
            start_x = 0, start_y = 0,
            end_x   = 16, end_y   = 4,

            diff    = (.1, .1, .1),
            mirror  = (.9, .9, .9)
          )
        )

PATTERN ( x_size = 60,                 { ** Checkered pattern ** }
          y_size = 60,
          name   = CHECK,
          RECTANGLE (
            start_x = 0,
            start_y = 0,
            end_x   = 30,
            end_y   = 30,
            diff    = (.1,1.0,.1),
          )
          RECTANGLE (
            start_x = 30,
            start_y = 30,
            end_x   = 60,
            end_y   = 60,
            diff    = (.1,1.0,.1),
          )
        )

{ *********************  OBJECTS  ********************* }

{ ** ground (standard checkered type) ** }

PARALLELOGRAM ( loc  = (  -10000, 0,  -10000),  { ** big! ** }
                v1   = (20000, 0,    0),
                v2   = (  0, 0, 20000),

                diff = (  .8, .8, 0),
                pattern = CHECK
                xmult = 2
                ymult = 2
              )

BEGIN_BBOX

    { ** Horizontal pole ** }


    SPHERE ( loc = (200, 90, -80),
             radius = 35,
             diff = (.7, .3, .5),

             pattern = MIRROR_STRIPE,
             xmult   = 1.5,
             ymult   = 1.5
           )

    QUADRATIC ( loc = (200, 90, 1),

                a    = 1,
                b    = 1,
                c    = 0,
                d    = 150,
                xmin = -13,
                xmax = 13,
                ymin = -13,
                ymax = 13,
                zmin = -80,
                zmax = 80,

                diff = (.8, .1, .1)
                reflect  = .65
                sreflect = 20
              )

    SPHERE ( loc = (200, 90, 80),
             radius = 35,
             diff = (.7, .3, .5),

             pattern = MIRROR_STRIPE,
             xmult   = 1.5,
             ymult   = 1.5
           )

END_BBOX

{ ** Bunch of floating rings ** }

BEGIN_BBOX

    BEGIN_BBOX

        RING ( loc   = (150, 20, 0),
               v1    = (1, 0, 0)
               v2    = (0, 0, 1)
               rad_2 = 15
               rad_1 = 8

               diff  = (.2, .8, .8)
             )

        RING ( loc   = (150, 30, 0),
               v1    = (1, 0, 0)
               v2    = (0, 0, 1)
               rad_2 = 15
               rad_1 = 8

               diff  = (.2, .8, .8)
             )

    END_BBOX

    BEGIN_BBOX

        RING ( loc   = (150, 40, 0),
               v1    = (1, 0, 0)
               v2    = (0, 0, 1)
               rad_2 = 15
               rad_1 = 8

               diff  = (.2, .8, .8)
             )

        RING ( loc   = (150, 50, 0),
               v1    = (1, 0, 0)
               v2    = (0, 0, 1)
               rad_2 = 15
               rad_1 = 8

               diff  = (.2, .8, .8)
             )

    BEGIN_BBOX

    BEGIN_BBOX

        RING ( loc   = (150, 60, 0),
               v1    = (1, 0, 0)
               v2    = (0, 0, 1)
               rad_2 = 15
               rad_1 = 8

               diff  = (.2, .8, .8)
             )

        RING ( loc   = (150, 70, 0),
               v1    = (1, 0, 0)
               v2    = (0, 0, 1)
               rad_2 = 15
               rad_1 = 8

               diff  = (.2, .8, .8)
             )

        RING ( loc   = (150, 80, 0),
               v1    = (1, 0, 0)
               v2    = (0, 0, 1)
               rad_2 = 15
               rad_1 = 8

               diff  = (.2, .8, .8)
             )

    END_BBOX

END_BBOX

{ ** Base - slightly reflective ** }

BEGIN_BBOX

    PARALLELOGRAM ( loc  = ( 100, 10,-100),
                    v1   = ( 0,   0,  200),
                    v2   = ( 200, 0,    0),

                    diff   = ( .6, .4, .4),
                    dither = 4
                  )

    PARALLELOGRAM ( loc  = ( 100,  0,-100),
                    v1   = (   0,  0, 200),
                    v2   = (   0, 10,   0),

                    diff   = ( .3, .1, .1),
                    mirror = ( .4, .2, .2)
                  )

END_BBOX

{ ** An observer ** }

OBSERVER ( loc    = (-20, 110, -40)
           lookat = (200, 50, 0)
         )

{ ** A lamp (really, 2 lamps ) ** }

LAMP ( loc = (120, 140, 50),
       radius = 5,
       dist = 90
     )

LAMP ( loc = (100, 55, -70),
       radius = 5,
       dist = 95
     )

{ ** Might as well make the sky dark blue ** }

SKY  ( horiz  = (.2, .2, .55),
       zenith = (.1, .1, .25),
       dither = 4
     )


FOC_LENGTH = 50


00000000  7b 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |{***************|
00000010  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
*
00000030  2a 2a 2a 0a 0a 20 20 20  20 51 52 54 20 73 6f 75  |***..    QRT sou|
00000040  72 63 65 20 66 6f 72 20  61 62 73 74 72 61 63 74  |rce for abstract|
00000050  20 74 68 69 6e 67 20 73  68 61 70 65 64 20 73 6f  | thing shaped so|
00000060  72 74 20 6f 66 0a 20 20  20 20 6c 69 6b 65 20 61  |rt of.    like a|
00000070  20 64 75 6d 62 65 6c 6c  20 73 75 70 70 6f 72 74  | dumbell support|
00000080  65 64 20 62 79 20 6c 65  76 69 74 61 74 69 6e 67  |ed by levitating|
00000090  0a 20 20 20 20 62 6c 75  65 20 72 69 6e 67 73 2e  |.    blue rings.|
000000a0  20 20 28 69 74 20 6d 69  67 68 74 20 77 65 6c 6c  |  (it might well|
000000b0  20 62 72 69 6e 67 20 6d  69 6c 6c 69 6f 6e 73 20  | bring millions |
000000c0  69 66 0a 20 20 20 20 61  75 63 74 69 6f 6e 65 64  |if.    auctioned|
000000d0  20 6f 66 66 20 61 73 20  6d 6f 64 65 72 6e 20 61  | off as modern a|
000000e0  72 74 29 2e 0a 0a 20 20  20 20 2d 20 53 74 65 76  |rt)...    - Stev|
000000f0  65 20 4b 6f 72 65 6e 20  20 20 39 20 4a 75 6e 20  |e Koren   9 Jun |
00000100  38 38 0a 0a 20 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |88.. ***********|
00000110  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
*
00000130  2a 2a 2a 2a 2a 2a 2a 7d  0a 0a 0a 46 49 4c 45 5f  |*******}...FILE_|
00000140  4e 41 4d 45 20 3d 20 50  6c 75 73 2e 52 41 57 0a  |NAME = Plus.RAW.|
00000150  0a 7b 20 2a 2a 2a 2a 2a  2a 2a 2a 2a 20 20 20 53  |.{ *********   S|
00000160  6f 6d 65 20 70 61 74 74  65 72 6e 20 64 65 66 69  |ome pattern defi|
00000170  6e 69 74 69 6f 6e 73 20  2a 2a 2a 2a 2a 2a 2a 2a  |nitions ********|
00000180  2a 2a 20 7d 0a 0a 50 41  54 54 45 52 4e 20 28 20  |** }..PATTERN ( |
00000190  78 5f 73 69 7a 65 20 3d  20 31 36 2c 20 20 20 20  |x_size = 16,    |
000001a0  20 20 20 20 20 20 20 20  20 20 20 20 20 7b 20 2a  |             { *|
000001b0  2a 20 41 20 73 74 72 69  70 65 20 70 61 74 74 65  |* A stripe patte|
000001c0  72 6e 20 2a 2a 20 7d 0a  20 20 20 20 20 20 20 20  |rn ** }.        |
000001d0  20 20 79 5f 73 69 7a 65  20 3d 20 38 2c 20 20 20  |  y_size = 8,   |
000001e0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 7b  |               {|
000001f0  20 2a 2a 20 66 6f 72 20  74 68 65 20 73 70 68 65  | ** for the sphe|
00000200  72 65 20 2a 2a 20 7d 0a  20 20 20 20 20 20 20 20  |re ** }.        |
00000210  20 20 6e 61 6d 65 20 20  20 3d 20 4d 49 52 52 4f  |  name   = MIRRO|
00000220  52 5f 53 54 52 49 50 45  2c 0a 0a 20 20 20 20 20  |R_STRIPE,..     |
00000230  20 20 20 20 20 52 45 43  54 41 4e 47 4c 45 20 28  |     RECTANGLE (|
00000240  0a 20 20 20 20 20 20 20  20 20 20 20 20 73 74 61  |.            sta|
00000250  72 74 5f 78 20 3d 20 30  2c 20 73 74 61 72 74 5f  |rt_x = 0, start_|
00000260  79 20 3d 20 30 2c 0a 20  20 20 20 20 20 20 20 20  |y = 0,.         |
00000270  20 20 20 65 6e 64 5f 78  20 20 20 3d 20 31 36 2c  |   end_x   = 16,|
00000280  20 65 6e 64 5f 79 20 20  20 3d 20 34 2c 0a 0a 20  | end_y   = 4,.. |
00000290  20 20 20 20 20 20 20 20  20 20 20 64 69 66 66 20  |           diff |
000002a0  20 20 20 3d 20 28 2e 31  2c 20 2e 31 2c 20 2e 31  |   = (.1, .1, .1|
000002b0  29 2c 0a 20 20 20 20 20  20 20 20 20 20 20 20 6d  |),.            m|
000002c0  69 72 72 6f 72 20 20 3d  20 28 2e 39 2c 20 2e 39  |irror  = (.9, .9|
000002d0  2c 20 2e 39 29 0a 20 20  20 20 20 20 20 20 20 20  |, .9).          |
000002e0  29 0a 20 20 20 20 20 20  20 20 29 0a 0a 50 41 54  |).        )..PAT|
000002f0  54 45 52 4e 20 28 20 78  5f 73 69 7a 65 20 3d 20  |TERN ( x_size = |
00000300  36 30 2c 20 20 20 20 20  20 20 20 20 20 20 20 20  |60,             |
00000310  20 20 20 20 7b 20 2a 2a  20 43 68 65 63 6b 65 72  |    { ** Checker|
00000320  65 64 20 70 61 74 74 65  72 6e 20 2a 2a 20 7d 0a  |ed pattern ** }.|
00000330  20 20 20 20 20 20 20 20  20 20 79 5f 73 69 7a 65  |          y_size|
00000340  20 3d 20 36 30 2c 0a 20  20 20 20 20 20 20 20 20  | = 60,.         |
00000350  20 6e 61 6d 65 20 20 20  3d 20 43 48 45 43 4b 2c  | name   = CHECK,|
00000360  0a 20 20 20 20 20 20 20  20 20 20 52 45 43 54 41  |.          RECTA|
00000370  4e 47 4c 45 20 28 0a 20  20 20 20 20 20 20 20 20  |NGLE (.         |
00000380  20 20 20 73 74 61 72 74  5f 78 20 3d 20 30 2c 0a  |   start_x = 0,.|
00000390  20 20 20 20 20 20 20 20  20 20 20 20 73 74 61 72  |            star|
000003a0  74 5f 79 20 3d 20 30 2c  0a 20 20 20 20 20 20 20  |t_y = 0,.       |
000003b0  20 20 20 20 20 65 6e 64  5f 78 20 20 20 3d 20 33  |     end_x   = 3|
000003c0  30 2c 0a 20 20 20 20 20  20 20 20 20 20 20 20 65  |0,.            e|
000003d0  6e 64 5f 79 20 20 20 3d  20 33 30 2c 0a 20 20 20  |nd_y   = 30,.   |
000003e0  20 20 20 20 20 20 20 20  20 64 69 66 66 20 20 20  |         diff   |
000003f0  20 3d 20 28 2e 31 2c 31  2e 30 2c 2e 31 29 2c 0a  | = (.1,1.0,.1),.|
00000400  20 20 20 20 20 20 20 20  20 20 29 0a 20 20 20 20  |          ).    |
00000410  20 20 20 20 20 20 52 45  43 54 41 4e 47 4c 45 20  |      RECTANGLE |
00000420  28 0a 20 20 20 20 20 20  20 20 20 20 20 20 73 74  |(.            st|
00000430  61 72 74 5f 78 20 3d 20  33 30 2c 0a 20 20 20 20  |art_x = 30,.    |
00000440  20 20 20 20 20 20 20 20  73 74 61 72 74 5f 79 20  |        start_y |
00000450  3d 20 33 30 2c 0a 20 20  20 20 20 20 20 20 20 20  |= 30,.          |
00000460  20 20 65 6e 64 5f 78 20  20 20 3d 20 36 30 2c 0a  |  end_x   = 60,.|
00000470  20 20 20 20 20 20 20 20  20 20 20 20 65 6e 64 5f  |            end_|
00000480  79 20 20 20 3d 20 36 30  2c 0a 20 20 20 20 20 20  |y   = 60,.      |
00000490  20 20 20 20 20 20 64 69  66 66 20 20 20 20 3d 20  |      diff    = |
000004a0  28 2e 31 2c 31 2e 30 2c  2e 31 29 2c 0a 20 20 20  |(.1,1.0,.1),.   |
000004b0  20 20 20 20 20 20 20 29  0a 20 20 20 20 20 20 20  |       ).       |
000004c0  20 29 0a 0a 7b 20 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  | )..{ **********|
000004d0  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 20 20 4f 42 4a  |***********  OBJ|
000004e0  45 43 54 53 20 20 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |ECTS  **********|
000004f0  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 20 7d 0a 0a 7b  |*********** }..{|
00000500  20 2a 2a 20 67 72 6f 75  6e 64 20 28 73 74 61 6e  | ** ground (stan|
00000510  64 61 72 64 20 63 68 65  63 6b 65 72 65 64 20 74  |dard checkered t|
00000520  79 70 65 29 20 2a 2a 20  7d 0a 0a 50 41 52 41 4c  |ype) ** }..PARAL|
00000530  4c 45 4c 4f 47 52 41 4d  20 28 20 6c 6f 63 20 20  |LELOGRAM ( loc  |
00000540  3d 20 28 20 20 2d 31 30  30 30 30 2c 20 30 2c 20  |= (  -10000, 0, |
00000550  20 2d 31 30 30 30 30 29  2c 20 20 7b 20 2a 2a 20  | -10000),  { ** |
00000560  62 69 67 21 20 2a 2a 20  7d 0a 20 20 20 20 20 20  |big! ** }.      |
00000570  20 20 20 20 20 20 20 20  20 20 76 31 20 20 20 3d  |          v1   =|
00000580  20 28 32 30 30 30 30 2c  20 30 2c 20 20 20 20 30  | (20000, 0,    0|
00000590  29 2c 0a 20 20 20 20 20  20 20 20 20 20 20 20 20  |),.             |
000005a0  20 20 20 76 32 20 20 20  3d 20 28 20 20 30 2c 20  |   v2   = (  0, |
000005b0  30 2c 20 32 30 30 30 30  29 2c 0a 0a 20 20 20 20  |0, 20000),..    |
000005c0  20 20 20 20 20 20 20 20  20 20 20 20 64 69 66 66  |            diff|
000005d0  20 3d 20 28 20 20 2e 38  2c 20 2e 38 2c 20 30 29  | = (  .8, .8, 0)|
000005e0  2c 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |,.              |
000005f0  20 20 70 61 74 74 65 72  6e 20 3d 20 43 48 45 43  |  pattern = CHEC|
00000600  4b 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |K.              |
00000610  20 20 78 6d 75 6c 74 20  3d 20 32 0a 20 20 20 20  |  xmult = 2.    |
00000620  20 20 20 20 20 20 20 20  20 20 20 20 79 6d 75 6c  |            ymul|
00000630  74 20 3d 20 32 0a 20 20  20 20 20 20 20 20 20 20  |t = 2.          |
00000640  20 20 20 20 29 0a 0a 42  45 47 49 4e 5f 42 42 4f  |    )..BEGIN_BBO|
00000650  58 0a 0a 20 20 20 20 7b  20 2a 2a 20 48 6f 72 69  |X..    { ** Hori|
00000660  7a 6f 6e 74 61 6c 20 70  6f 6c 65 20 2a 2a 20 7d  |zontal pole ** }|
00000670  0a 0a 0a 20 20 20 20 53  50 48 45 52 45 20 28 20  |...    SPHERE ( |
00000680  6c 6f 63 20 3d 20 28 32  30 30 2c 20 39 30 2c 20  |loc = (200, 90, |
00000690  2d 38 30 29 2c 0a 20 20  20 20 20 20 20 20 20 20  |-80),.          |
000006a0  20 20 20 72 61 64 69 75  73 20 3d 20 33 35 2c 0a  |   radius = 35,.|
000006b0  20 20 20 20 20 20 20 20  20 20 20 20 20 64 69 66  |             dif|
000006c0  66 20 3d 20 28 2e 37 2c  20 2e 33 2c 20 2e 35 29  |f = (.7, .3, .5)|
000006d0  2c 0a 0a 20 20 20 20 20  20 20 20 20 20 20 20 20  |,..             |
000006e0  70 61 74 74 65 72 6e 20  3d 20 4d 49 52 52 4f 52  |pattern = MIRROR|
000006f0  5f 53 54 52 49 50 45 2c  0a 20 20 20 20 20 20 20  |_STRIPE,.       |
00000700  20 20 20 20 20 20 78 6d  75 6c 74 20 20 20 3d 20  |      xmult   = |
00000710  31 2e 35 2c 0a 20 20 20  20 20 20 20 20 20 20 20  |1.5,.           |
00000720  20 20 79 6d 75 6c 74 20  20 20 3d 20 31 2e 35 0a  |  ymult   = 1.5.|
00000730  20 20 20 20 20 20 20 20  20 20 20 29 0a 0a 20 20  |           )..  |
00000740  20 20 51 55 41 44 52 41  54 49 43 20 28 20 6c 6f  |  QUADRATIC ( lo|
00000750  63 20 3d 20 28 32 30 30  2c 20 39 30 2c 20 31 29  |c = (200, 90, 1)|
00000760  2c 0a 0a 20 20 20 20 20  20 20 20 20 20 20 20 20  |,..             |
00000770  20 20 20 61 20 20 20 20  3d 20 31 2c 0a 20 20 20  |   a    = 1,.   |
00000780  20 20 20 20 20 20 20 20  20 20 20 20 20 62 20 20  |             b  |
00000790  20 20 3d 20 31 2c 0a 20  20 20 20 20 20 20 20 20  |  = 1,.         |
000007a0  20 20 20 20 20 20 20 63  20 20 20 20 3d 20 30 2c  |       c    = 0,|
000007b0  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
000007c0  20 64 20 20 20 20 3d 20  31 35 30 2c 0a 20 20 20  | d    = 150,.   |
000007d0  20 20 20 20 20 20 20 20  20 20 20 20 20 78 6d 69  |             xmi|
000007e0  6e 20 3d 20 2d 31 33 2c  0a 20 20 20 20 20 20 20  |n = -13,.       |
000007f0  20 20 20 20 20 20 20 20  20 78 6d 61 78 20 3d 20  |         xmax = |
00000800  31 33 2c 0a 20 20 20 20  20 20 20 20 20 20 20 20  |13,.            |
00000810  20 20 20 20 79 6d 69 6e  20 3d 20 2d 31 33 2c 0a  |    ymin = -13,.|
00000820  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000830  79 6d 61 78 20 3d 20 31  33 2c 0a 20 20 20 20 20  |ymax = 13,.     |
00000840  20 20 20 20 20 20 20 20  20 20 20 7a 6d 69 6e 20  |           zmin |
00000850  3d 20 2d 38 30 2c 0a 20  20 20 20 20 20 20 20 20  |= -80,.         |
00000860  20 20 20 20 20 20 20 7a  6d 61 78 20 3d 20 38 30  |       zmax = 80|
00000870  2c 0a 0a 20 20 20 20 20  20 20 20 20 20 20 20 20  |,..             |
00000880  20 20 20 64 69 66 66 20  3d 20 28 2e 38 2c 20 2e  |   diff = (.8, .|
00000890  31 2c 20 2e 31 29 0a 20  20 20 20 20 20 20 20 20  |1, .1).         |
000008a0  20 20 20 20 20 20 20 72  65 66 6c 65 63 74 20 20  |       reflect  |
000008b0  3d 20 2e 36 35 0a 20 20  20 20 20 20 20 20 20 20  |= .65.          |
000008c0  20 20 20 20 20 20 73 72  65 66 6c 65 63 74 20 3d  |      sreflect =|
000008d0  20 32 30 0a 20 20 20 20  20 20 20 20 20 20 20 20  | 20.            |
000008e0  20 20 29 0a 0a 20 20 20  20 53 50 48 45 52 45 20  |  )..    SPHERE |
000008f0  28 20 6c 6f 63 20 3d 20  28 32 30 30 2c 20 39 30  |( loc = (200, 90|
00000900  2c 20 38 30 29 2c 0a 20  20 20 20 20 20 20 20 20  |, 80),.         |
00000910  20 20 20 20 72 61 64 69  75 73 20 3d 20 33 35 2c  |    radius = 35,|
00000920  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 64 69  |.             di|
00000930  66 66 20 3d 20 28 2e 37  2c 20 2e 33 2c 20 2e 35  |ff = (.7, .3, .5|
00000940  29 2c 0a 0a 20 20 20 20  20 20 20 20 20 20 20 20  |),..            |
00000950  20 70 61 74 74 65 72 6e  20 3d 20 4d 49 52 52 4f  | pattern = MIRRO|
00000960  52 5f 53 54 52 49 50 45  2c 0a 20 20 20 20 20 20  |R_STRIPE,.      |
00000970  20 20 20 20 20 20 20 78  6d 75 6c 74 20 20 20 3d  |       xmult   =|
00000980  20 31 2e 35 2c 0a 20 20  20 20 20 20 20 20 20 20  | 1.5,.          |
00000990  20 20 20 79 6d 75 6c 74  20 20 20 3d 20 31 2e 35  |   ymult   = 1.5|
000009a0  0a 20 20 20 20 20 20 20  20 20 20 20 29 0a 0a 45  |.           )..E|
000009b0  4e 44 5f 42 42 4f 58 0a  0a 7b 20 2a 2a 20 42 75  |ND_BBOX..{ ** Bu|
000009c0  6e 63 68 20 6f 66 20 66  6c 6f 61 74 69 6e 67 20  |nch of floating |
000009d0  72 69 6e 67 73 20 2a 2a  20 7d 0a 0a 42 45 47 49  |rings ** }..BEGI|
000009e0  4e 5f 42 42 4f 58 0a 0a  20 20 20 20 42 45 47 49  |N_BBOX..    BEGI|
000009f0  4e 5f 42 42 4f 58 0a 0a  20 20 20 20 20 20 20 20  |N_BBOX..        |
00000a00  52 49 4e 47 20 28 20 6c  6f 63 20 20 20 3d 20 28  |RING ( loc   = (|
00000a10  31 35 30 2c 20 32 30 2c  20 30 29 2c 0a 20 20 20  |150, 20, 0),.   |
00000a20  20 20 20 20 20 20 20 20  20 20 20 20 76 31 20 20  |            v1  |
00000a30  20 20 3d 20 28 31 2c 20  30 2c 20 30 29 0a 20 20  |  = (1, 0, 0).  |
00000a40  20 20 20 20 20 20 20 20  20 20 20 20 20 76 32 20  |             v2 |
00000a50  20 20 20 3d 20 28 30 2c  20 30 2c 20 31 29 0a 20  |   = (0, 0, 1). |
00000a60  20 20 20 20 20 20 20 20  20 20 20 20 20 20 72 61  |              ra|
00000a70  64 5f 32 20 3d 20 31 35  0a 20 20 20 20 20 20 20  |d_2 = 15.       |
00000a80  20 20 20 20 20 20 20 20  72 61 64 5f 31 20 3d 20  |        rad_1 = |
00000a90  38 0a 0a 20 20 20 20 20  20 20 20 20 20 20 20 20  |8..             |
00000aa0  20 20 64 69 66 66 20 20  3d 20 28 2e 32 2c 20 2e  |  diff  = (.2, .|
00000ab0  38 2c 20 2e 38 29 0a 20  20 20 20 20 20 20 20 20  |8, .8).         |
00000ac0  20 20 20 20 29 0a 0a 20  20 20 20 20 20 20 20 52  |    )..        R|
00000ad0  49 4e 47 20 28 20 6c 6f  63 20 20 20 3d 20 28 31  |ING ( loc   = (1|
00000ae0  35 30 2c 20 33 30 2c 20  30 29 2c 0a 20 20 20 20  |50, 30, 0),.    |
00000af0  20 20 20 20 20 20 20 20  20 20 20 76 31 20 20 20  |           v1   |
00000b00  20 3d 20 28 31 2c 20 30  2c 20 30 29 0a 20 20 20  | = (1, 0, 0).   |
00000b10  20 20 20 20 20 20 20 20  20 20 20 20 76 32 20 20  |            v2  |
00000b20  20 20 3d 20 28 30 2c 20  30 2c 20 31 29 0a 20 20  |  = (0, 0, 1).  |
00000b30  20 20 20 20 20 20 20 20  20 20 20 20 20 72 61 64  |             rad|
00000b40  5f 32 20 3d 20 31 35 0a  20 20 20 20 20 20 20 20  |_2 = 15.        |
00000b50  20 20 20 20 20 20 20 72  61 64 5f 31 20 3d 20 38  |       rad_1 = 8|
00000b60  0a 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |..              |
00000b70  20 64 69 66 66 20 20 3d  20 28 2e 32 2c 20 2e 38  | diff  = (.2, .8|
00000b80  2c 20 2e 38 29 0a 20 20  20 20 20 20 20 20 20 20  |, .8).          |
00000b90  20 20 20 29 0a 0a 20 20  20 20 45 4e 44 5f 42 42  |   )..    END_BB|
00000ba0  4f 58 0a 0a 20 20 20 20  42 45 47 49 4e 5f 42 42  |OX..    BEGIN_BB|
00000bb0  4f 58 0a 0a 20 20 20 20  20 20 20 20 52 49 4e 47  |OX..        RING|
00000bc0  20 28 20 6c 6f 63 20 20  20 3d 20 28 31 35 30 2c  | ( loc   = (150,|
00000bd0  20 34 30 2c 20 30 29 2c  0a 20 20 20 20 20 20 20  | 40, 0),.       |
00000be0  20 20 20 20 20 20 20 20  76 31 20 20 20 20 3d 20  |        v1    = |
00000bf0  28 31 2c 20 30 2c 20 30  29 0a 20 20 20 20 20 20  |(1, 0, 0).      |
00000c00  20 20 20 20 20 20 20 20  20 76 32 20 20 20 20 3d  |         v2    =|
00000c10  20 28 30 2c 20 30 2c 20  31 29 0a 20 20 20 20 20  | (0, 0, 1).     |
00000c20  20 20 20 20 20 20 20 20  20 20 72 61 64 5f 32 20  |          rad_2 |
00000c30  3d 20 31 35 0a 20 20 20  20 20 20 20 20 20 20 20  |= 15.           |
00000c40  20 20 20 20 72 61 64 5f  31 20 3d 20 38 0a 0a 20  |    rad_1 = 8.. |
00000c50  20 20 20 20 20 20 20 20  20 20 20 20 20 20 64 69  |              di|
00000c60  66 66 20 20 3d 20 28 2e  32 2c 20 2e 38 2c 20 2e  |ff  = (.2, .8, .|
00000c70  38 29 0a 20 20 20 20 20  20 20 20 20 20 20 20 20  |8).             |
00000c80  29 0a 0a 20 20 20 20 20  20 20 20 52 49 4e 47 20  |)..        RING |
00000c90  28 20 6c 6f 63 20 20 20  3d 20 28 31 35 30 2c 20  |( loc   = (150, |
00000ca0  35 30 2c 20 30 29 2c 0a  20 20 20 20 20 20 20 20  |50, 0),.        |
00000cb0  20 20 20 20 20 20 20 76  31 20 20 20 20 3d 20 28  |       v1    = (|
00000cc0  31 2c 20 30 2c 20 30 29  0a 20 20 20 20 20 20 20  |1, 0, 0).       |
00000cd0  20 20 20 20 20 20 20 20  76 32 20 20 20 20 3d 20  |        v2    = |
00000ce0  28 30 2c 20 30 2c 20 31  29 0a 20 20 20 20 20 20  |(0, 0, 1).      |
00000cf0  20 20 20 20 20 20 20 20  20 72 61 64 5f 32 20 3d  |         rad_2 =|
00000d00  20 31 35 0a 20 20 20 20  20 20 20 20 20 20 20 20  | 15.            |
00000d10  20 20 20 72 61 64 5f 31  20 3d 20 38 0a 0a 20 20  |   rad_1 = 8..  |
00000d20  20 20 20 20 20 20 20 20  20 20 20 20 20 64 69 66  |             dif|
00000d30  66 20 20 3d 20 28 2e 32  2c 20 2e 38 2c 20 2e 38  |f  = (.2, .8, .8|
00000d40  29 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 29  |).             )|
00000d50  0a 0a 20 20 20 20 42 45  47 49 4e 5f 42 42 4f 58  |..    BEGIN_BBOX|
*
00000d70  0a 0a 20 20 20 20 20 20  20 20 52 49 4e 47 20 28  |..        RING (|
00000d80  20 6c 6f 63 20 20 20 3d  20 28 31 35 30 2c 20 36  | loc   = (150, 6|
00000d90  30 2c 20 30 29 2c 0a 20  20 20 20 20 20 20 20 20  |0, 0),.         |
00000da0  20 20 20 20 20 20 76 31  20 20 20 20 3d 20 28 31  |      v1    = (1|
00000db0  2c 20 30 2c 20 30 29 0a  20 20 20 20 20 20 20 20  |, 0, 0).        |
00000dc0  20 20 20 20 20 20 20 76  32 20 20 20 20 3d 20 28  |       v2    = (|
00000dd0  30 2c 20 30 2c 20 31 29  0a 20 20 20 20 20 20 20  |0, 0, 1).       |
00000de0  20 20 20 20 20 20 20 20  72 61 64 5f 32 20 3d 20  |        rad_2 = |
00000df0  31 35 0a 20 20 20 20 20  20 20 20 20 20 20 20 20  |15.             |
00000e00  20 20 72 61 64 5f 31 20  3d 20 38 0a 0a 20 20 20  |  rad_1 = 8..   |
00000e10  20 20 20 20 20 20 20 20  20 20 20 20 64 69 66 66  |            diff|
00000e20  20 20 3d 20 28 2e 32 2c  20 2e 38 2c 20 2e 38 29  |  = (.2, .8, .8)|
00000e30  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 29 0a  |.             ).|
00000e40  0a 20 20 20 20 20 20 20  20 52 49 4e 47 20 28 20  |.        RING ( |
00000e50  6c 6f 63 20 20 20 3d 20  28 31 35 30 2c 20 37 30  |loc   = (150, 70|
00000e60  2c 20 30 29 2c 0a 20 20  20 20 20 20 20 20 20 20  |, 0),.          |
00000e70  20 20 20 20 20 76 31 20  20 20 20 3d 20 28 31 2c  |     v1    = (1,|
00000e80  20 30 2c 20 30 29 0a 20  20 20 20 20 20 20 20 20  | 0, 0).         |
00000e90  20 20 20 20 20 20 76 32  20 20 20 20 3d 20 28 30  |      v2    = (0|
00000ea0  2c 20 30 2c 20 31 29 0a  20 20 20 20 20 20 20 20  |, 0, 1).        |
00000eb0  20 20 20 20 20 20 20 72  61 64 5f 32 20 3d 20 31  |       rad_2 = 1|
00000ec0  35 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |5.              |
00000ed0  20 72 61 64 5f 31 20 3d  20 38 0a 0a 20 20 20 20  | rad_1 = 8..    |
00000ee0  20 20 20 20 20 20 20 20  20 20 20 64 69 66 66 20  |           diff |
00000ef0  20 3d 20 28 2e 32 2c 20  2e 38 2c 20 2e 38 29 0a  | = (.2, .8, .8).|
00000f00  20 20 20 20 20 20 20 20  20 20 20 20 20 29 0a 0a  |             )..|
00000f10  20 20 20 20 20 20 20 20  52 49 4e 47 20 28 20 6c  |        RING ( l|
00000f20  6f 63 20 20 20 3d 20 28  31 35 30 2c 20 38 30 2c  |oc   = (150, 80,|
00000f30  20 30 29 2c 0a 20 20 20  20 20 20 20 20 20 20 20  | 0),.           |
00000f40  20 20 20 20 76 31 20 20  20 20 3d 20 28 31 2c 20  |    v1    = (1, |
00000f50  30 2c 20 30 29 0a 20 20  20 20 20 20 20 20 20 20  |0, 0).          |
00000f60  20 20 20 20 20 76 32 20  20 20 20 3d 20 28 30 2c  |     v2    = (0,|
00000f70  20 30 2c 20 31 29 0a 20  20 20 20 20 20 20 20 20  | 0, 1).         |
00000f80  20 20 20 20 20 20 72 61  64 5f 32 20 3d 20 31 35  |      rad_2 = 15|
00000f90  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
00000fa0  72 61 64 5f 31 20 3d 20  38 0a 0a 20 20 20 20 20  |rad_1 = 8..     |
00000fb0  20 20 20 20 20 20 20 20  20 20 64 69 66 66 20 20  |          diff  |
00000fc0  3d 20 28 2e 32 2c 20 2e  38 2c 20 2e 38 29 0a 20  |= (.2, .8, .8). |
00000fd0  20 20 20 20 20 20 20 20  20 20 20 20 29 0a 0a 20  |            ).. |
00000fe0  20 20 20 45 4e 44 5f 42  42 4f 58 0a 0a 45 4e 44  |   END_BBOX..END|
00000ff0  5f 42 42 4f 58 0a 0a 7b  20 2a 2a 20 42 61 73 65  |_BBOX..{ ** Base|
00001000  20 2d 20 73 6c 69 67 68  74 6c 79 20 72 65 66 6c  | - slightly refl|
00001010  65 63 74 69 76 65 20 2a  2a 20 7d 0a 0a 42 45 47  |ective ** }..BEG|
00001020  49 4e 5f 42 42 4f 58 0a  0a 20 20 20 20 50 41 52  |IN_BBOX..    PAR|
00001030  41 4c 4c 45 4c 4f 47 52  41 4d 20 28 20 6c 6f 63  |ALLELOGRAM ( loc|
00001040  20 20 3d 20 28 20 31 30  30 2c 20 31 30 2c 2d 31  |  = ( 100, 10,-1|
00001050  30 30 29 2c 0a 20 20 20  20 20 20 20 20 20 20 20  |00),.           |
00001060  20 20 20 20 20 20 20 20  20 76 31 20 20 20 3d 20  |         v1   = |
00001070  28 20 30 2c 20 20 20 30  2c 20 20 32 30 30 29 2c  |( 0,   0,  200),|
00001080  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
00001090  20 20 20 20 20 76 32 20  20 20 3d 20 28 20 32 30  |     v2   = ( 20|
000010a0  30 2c 20 30 2c 20 20 20  20 30 29 2c 0a 0a 20 20  |0, 0,    0),..  |
000010b0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000010c0  20 20 64 69 66 66 20 20  20 3d 20 28 20 2e 36 2c  |  diff   = ( .6,|
000010d0  20 2e 34 2c 20 2e 34 29  2c 0a 20 20 20 20 20 20  | .4, .4),.      |
000010e0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 64 69  |              di|
000010f0  74 68 65 72 20 3d 20 34  0a 20 20 20 20 20 20 20  |ther = 4.       |
00001100  20 20 20 20 20 20 20 20  20 20 20 29 0a 0a 20 20  |           )..  |
00001110  20 20 50 41 52 41 4c 4c  45 4c 4f 47 52 41 4d 20  |  PARALLELOGRAM |
00001120  28 20 6c 6f 63 20 20 3d  20 28 20 31 30 30 2c 20  |( loc  = ( 100, |
00001130  20 30 2c 2d 31 30 30 29  2c 0a 20 20 20 20 20 20  | 0,-100),.      |
00001140  20 20 20 20 20 20 20 20  20 20 20 20 20 20 76 31  |              v1|
00001150  20 20 20 3d 20 28 20 20  20 30 2c 20 20 30 2c 20  |   = (   0,  0, |
00001160  32 30 30 29 2c 0a 20 20  20 20 20 20 20 20 20 20  |200),.          |
00001170  20 20 20 20 20 20 20 20  20 20 76 32 20 20 20 3d  |          v2   =|
00001180  20 28 20 20 20 30 2c 20  31 30 2c 20 20 20 30 29  | (   0, 10,   0)|
00001190  2c 0a 0a 20 20 20 20 20  20 20 20 20 20 20 20 20  |,..             |
000011a0  20 20 20 20 20 20 20 64  69 66 66 20 20 20 3d 20  |       diff   = |
000011b0  28 20 2e 33 2c 20 2e 31  2c 20 2e 31 29 2c 0a 20  |( .3, .1, .1),. |
000011c0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000011d0  20 20 20 6d 69 72 72 6f  72 20 3d 20 28 20 2e 34  |   mirror = ( .4|
000011e0  2c 20 2e 32 2c 20 2e 32  29 0a 20 20 20 20 20 20  |, .2, .2).      |
000011f0  20 20 20 20 20 20 20 20  20 20 20 20 29 0a 0a 45  |            )..E|
00001200  4e 44 5f 42 42 4f 58 0a  0a 7b 20 2a 2a 20 41 6e  |ND_BBOX..{ ** An|
00001210  20 6f 62 73 65 72 76 65  72 20 2a 2a 20 7d 0a 0a  | observer ** }..|
00001220  4f 42 53 45 52 56 45 52  20 28 20 6c 6f 63 20 20  |OBSERVER ( loc  |
00001230  20 20 3d 20 28 2d 32 30  2c 20 31 31 30 2c 20 2d  |  = (-20, 110, -|
00001240  34 30 29 0a 20 20 20 20  20 20 20 20 20 20 20 6c  |40).           l|
00001250  6f 6f 6b 61 74 20 3d 20  28 32 30 30 2c 20 35 30  |ookat = (200, 50|
00001260  2c 20 30 29 0a 20 20 20  20 20 20 20 20 20 29 0a  |, 0).         ).|
00001270  0a 7b 20 2a 2a 20 41 20  6c 61 6d 70 20 28 72 65  |.{ ** A lamp (re|
00001280  61 6c 6c 79 2c 20 32 20  6c 61 6d 70 73 20 29 20  |ally, 2 lamps ) |
00001290  2a 2a 20 7d 0a 0a 4c 41  4d 50 20 28 20 6c 6f 63  |** }..LAMP ( loc|
000012a0  20 3d 20 28 31 32 30 2c  20 31 34 30 2c 20 35 30  | = (120, 140, 50|
000012b0  29 2c 0a 20 20 20 20 20  20 20 72 61 64 69 75 73  |),.       radius|
000012c0  20 3d 20 35 2c 0a 20 20  20 20 20 20 20 64 69 73  | = 5,.       dis|
000012d0  74 20 3d 20 39 30 0a 20  20 20 20 20 29 0a 0a 4c  |t = 90.     )..L|
000012e0  41 4d 50 20 28 20 6c 6f  63 20 3d 20 28 31 30 30  |AMP ( loc = (100|
000012f0  2c 20 35 35 2c 20 2d 37  30 29 2c 0a 20 20 20 20  |, 55, -70),.    |
00001300  20 20 20 72 61 64 69 75  73 20 3d 20 35 2c 0a 20  |   radius = 5,. |
00001310  20 20 20 20 20 20 64 69  73 74 20 3d 20 39 35 0a  |      dist = 95.|
00001320  20 20 20 20 20 29 0a 0a  7b 20 2a 2a 20 4d 69 67  |     )..{ ** Mig|
00001330  68 74 20 61 73 20 77 65  6c 6c 20 6d 61 6b 65 20  |ht as well make |
00001340  74 68 65 20 73 6b 79 20  64 61 72 6b 20 62 6c 75  |the sky dark blu|
00001350  65 20 2a 2a 20 7d 0a 0a  53 4b 59 20 20 28 20 68  |e ** }..SKY  ( h|
00001360  6f 72 69 7a 20 20 3d 20  28 2e 32 2c 20 2e 32 2c  |oriz  = (.2, .2,|
00001370  20 2e 35 35 29 2c 0a 20  20 20 20 20 20 20 7a 65  | .55),.       ze|
00001380  6e 69 74 68 20 3d 20 28  2e 31 2c 20 2e 31 2c 20  |nith = (.1, .1, |
00001390  2e 32 35 29 2c 0a 20 20  20 20 20 20 20 64 69 74  |.25),.       dit|
000013a0  68 65 72 20 3d 20 34 0a  20 20 20 20 20 29 0a 0a  |her = 4.     )..|
000013b0  0a 46 4f 43 5f 4c 45 4e  47 54 48 20 3d 20 35 30  |.FOC_LENGTH = 50|
000013c0  0a 0a 0a                                          |...|
000013c3