asy for 2

settings.outformat="html";
import graph3;
size(10cm,10cm);

currentprojection=perspective(10,10,10);

for(int i=1;i<10;++i) {
    for(int j=1;j<10;++j)
    draw((i,0,j)--(10,10,10),rgb(i/10.0,1-i/10,j/10));
}



原文地址:https://www.cnblogs.com/Searchor/p/13826542.html