summaryrefslogtreecommitdiff
path: root/share/hackvr/examples/starfield.c
blob: d367bb32ab72870a75b2fea427af36d48d85c683 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>

int main(int argc,char *argv[]) {

  int i,x,y,z;
  for(i=0;i<100;i++) {
    x=(rand()%1000)-500;
    y=(rand()%1000)-500;
    z=(rand()%1000)-500;
    printf("star%d addshape %d 1 %d %d %d %d %d %d\n",i,(rand()%7)+17,x,y,z,x+rand()%10,y,z);
  } 
}