forked from harrisonpartch/spasim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
N2qeD84Fv78X2XEj8PtU668.Mod
46 lines (39 loc) · 1004 Bytes
/
N2qeD84Fv78X2XEj8PtU668.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
MODULE N2qeD84Fv78X2XEj8PtU668;(*anonymous module created by saboteur*)
IMPORT Objects, Base, FRep, Out:=KernelLog, Random;
TYPE Ray = Base.Ray;
Voxel = Base.Voxel;
PT =Base.PT;
VAR
ball: FRep.sphere;
noise: FRep.noise;
cyl: FRep.hexgrid;
reddot,bludot,tigerlily,v: Voxel;
center, p1, p2,n: PT;
i:LONGINT;
rand: Random.Generator;
PROCEDURE draw(VAR dot: Voxel);
BEGIN
dot:=Base.VoxelFromName("NM3");
dot.setcolor(120,100,0,150,0);
bludot:=Base.VoxelFromName("N2qeD84Fv78X2XEj8PtUZO7");
Base.setPT(center,1/2,1/2,1/2);
tigerlily:=Base.VoxelFromName("NUzl1lqmBmaKyswkc70kO1w");
NEW(ball,center,8/12);
ball.setcolor(0.9,0.9,1);
ball.setvoxel(tigerlily);
dot.FRaster(ball,32);
dot.DTL:=1000;
FOR i:=0 TO 1000 DO
p1:=Base.randPT();
dot.stroke(p1,32,bludot,v);
END;
dot.copyonstroke:=TRUE;
END draw;
PROCEDURE thisvox*():Base.Voxel;
BEGIN
draw(reddot);
RETURN reddot
END thisvox;
BEGIN
END N2qeD84Fv78X2XEj8PtU668.
XNXLMarsh.Rez N2qeD84Fv78X2XEj8PtU668~