diff options
Diffstat (limited to 'info/drawing-with-metapost/src/color-blend-toy.mp')
-rw-r--r-- | info/drawing-with-metapost/src/color-blend-toy.mp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/info/drawing-with-metapost/src/color-blend-toy.mp b/info/drawing-with-metapost/src/color-blend-toy.mp new file mode 100644 index 0000000000..d712791230 --- /dev/null +++ b/info/drawing-with-metapost/src/color-blend-toy.mp @@ -0,0 +1,21 @@ +\documentclass{standalone} +\usepackage{luamplib} +\begin{document} +\begin{mplibcode} +beginfig(1); + color brg, pbr; + brg = 1/256 (1, 66, 37); + pbr = 1/256 (223, 52, 57); + N = 5; n = 0; + for y=1 upto N: + for x=1 upto N: + fill fullcircle scaled 16 shifted 20(x,y) + withpen pencircle scaled 2 + withcolor (n/N/N)[pbr, brg]; + label(decimal incr n infont "phvr8r", 20(x,y)) + withcolor white; + endfor + endfor +endfig; +\end{mplibcode} +\end{document} |