~ubuntu-branches/ubuntu/saucy/cuyo/saucy

« back to all changes in this revision

Viewing changes to datasrc/pics/mbrBall.pov

  • Committer: Bazaar Package Importer
  • Author(s): Angel Abad
  • Date: 2010-07-19 09:54:44 UTC
  • mfrom: (4.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100719095444-ecoegzo1vvvdwra9
Tags: 2.~-1.1.brl3-1ubuntu1
* Merge from debian unstable (LP: #607106). Remaining changes:
  - Don't register MimeType=application/x-executable in
    the .desktop file.
  - Remove UTF-8 in the .desktop file
  - 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
    Copyright 2005 by Mark Weyer
3
 
 
4
 
    This program is free software; you can redistribute it and/or modify
5
 
    it under the terms of the GNU General Public License as published by
6
 
    the Free Software Foundation; either version 2 of the License, or
7
 
    (at your option) any later version.
8
 
 
9
 
    This program is distributed in the hope that it will be useful,
10
 
    but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 
    GNU General Public License for more details.
13
 
 
14
 
    You should have received a copy of the GNU General Public License
15
 
    along with this program; if not, write to the Free Software
16
 
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
 
*/
18
 
 
19
 
#declare Breite = 2*Anzahl;
20
 
#declare Hoehe = 2*Anzahl;
21
 
 
22
 
#include "breakout.inc"
23
 
 
24
 
#declare Abstand = 2+1/Anzahl;
25
 
#declare Offset = (1-Anzahl)*Abstand/2;
26
 
 
27
 
#macro Ball(X,Y)
28
 
  sphere {
29
 
    <X,-Y,0> 2/(2+Anzahl)
30
 
    Textur(texture {
31
 
      pigment {rgb 1}
32
 
      finish {ambient 1/2}
33
 
    })
34
 
  }
35
 
#end
36
 
 
37
 
#local I=0;
38
 
#while (I<Anzahl)
39
 
  #local J=0;
40
 
  #while (J<Anzahl)
41
 
    Ball(Offset+I*Abstand,Offset+J*Abstand)
42
 
    #local J=J+1;
43
 
  #end
44
 
  #local I=I+1;
45
 
#end
46