forked from harrisonpartch/spasim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathN2qeD84Fv78X2XEj8PtUZOQ.Mod
60 lines (50 loc) · 1.32 KB
/
N2qeD84Fv78X2XEj8PtUZOQ.Mod
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
MODULE N2qeD84Fv78X2XEj8PtUZOQ;(*anonymous module created by saboteur*)
IMPORT Base, FRep;
TYPE Ray = Base.Ray;
Voxel = Base.Voxel;
PT =Base.PT;
VAR
ball: FRep.sphere;
cyl: FRep.cyl;
v,vr: Voxel;
conglomerate,sc,star:Voxel;
center,q,qq: PT;
p:ARRAY 7 OF PT;
i,j,k:INTEGER;
PROCEDURE thisvox*():Base.Voxel;
BEGIN
RETURN star
END thisvox;
BEGIN
v:=Base.VoxelFromName("NnTJ6nDktAth4WTAUdr8HYQ");
conglomerate:=Base.VoxelFromName("NM3");
sc:=Base.VoxelFromName("NM3");
star:=Base.VoxelFromName("NM3");
conglomerate.imposter:=sc;
conglomerate.setcolor(0,0,0,100,0);
Base.setPT(center,1/2,1/2,1/2);
Base.setPT(q,1/2,1/2,0);
Base.setPT(qq,1/2,1/2,1);
NEW(ball,center,1/2);
ball.cxf:=TRUE;
NEW(cyl,q,qq,1/6);
conglomerate.FRaster(ball,9);
sc.FRaster(cyl,9);
star.FRaster(ball,9);
star.imposter:=conglomerate;
FOR i := 0 TO 10 DO
q:=Base.randPT();
star.stroke(q,3,conglomerate,vr);
q:=Base.randPT();
star.stroke(q,3,sc,vr);
END;
star.setcolor(0,0,0,10,0);
star.copyonstroke:=TRUE;
conglomerate.copyonstroke:=TRUE;
FOR i := 0 TO 100 DO
Base.setPT(center,Base.rand.Uniform(),Base.rand.Uniform(),Base.rand.Uniform());
NEW(ball,center,1/25);
ball.setcolor(Base.rand.Uniform(),Base.rand.Uniform(),Base.rand.Uniform());
star.FRaster(ball,128);
END;
END N2qeD84Fv78X2XEj8PtUZOQ.