4,818
社区成员
发帖
与我相关
我的任务
分享
numbervar x_R;
numbervar x_G;
numbervar x_B;
numbervar x_GroupId;
if Groupnumber=1 then
(
x_GroupId:=1;
x_R:=80;
x_G:=80;
x_B:=80)
else
(
if x_GroupId<>Groupnumber then
(
x_GroupId:=Groupnumber;
x_R:=Int(Rnd*255);
x_G:=Int(Rnd*255);
x_B:=Int(Rnd*255)
)
else
(
x_R:=x_R;
x_G:=x_G;
x_B:=x_B
);
);
Color(x_R,x_G,x_B)
if GroupNumber Mod 2=0 then
crblue
else
crred