Difference between revisions of "User:Anand.oza"

(New page: <asy>unitsize(1cm); int[][] c = {{0,2,2,0,0,0}, {0,1,1,1,1,0}, {3,3,3,0,0,0}}; real[] red = {1, 0, 0, 0}; real[] gre = {0, 0, 1, 0}; real[] blu = {0, 1, 0, 0}; fo...)
 
(Blanked the page)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<asy>unitsize(1cm);
+
 
int[][] c = {{0,2,2,0,0,0},
 
            {0,1,1,1,1,0},
 
            {3,3,3,0,0,0}};
 
real[] red = {1, 0, 0, 0};
 
real[] gre = {0, 0, 1, 0};
 
real[] blu = {0, 1, 0, 0};
 
for(int i=0; i < c.length; ++i) {
 
for(int j=0; j < c[i].length; ++j) {
 
dot((i,j),rgb(red[c[i][j]], gre[c[i][j]], blu[c[i][j]]));
 
}
 
}
 
</asy>
 

Latest revision as of 03:02, 21 November 2011