diff options
Diffstat (limited to 'graphics/asymptote/doc/penimage.asy')
-rw-r--r-- | graphics/asymptote/doc/penimage.asy | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/graphics/asymptote/doc/penimage.asy b/graphics/asymptote/doc/penimage.asy new file mode 100644 index 0000000000..2aef9f9ebe --- /dev/null +++ b/graphics/asymptote/doc/penimage.asy @@ -0,0 +1,14 @@ +size(200); + +import palette; + +int n=256; +real ninv=2pi/n; +pen[][] v=new pen[n][n]; + +for(int i=0; i < n; ++i) + for(int j=0; j < n; ++j) + v[i][j]=rgb(0.5*(1+sin(i*ninv)),0.5*(1+cos(j*ninv)),0); + +image(v,(0,0),(1,1)); + |