11.07.2015 Views

Advanced Programming Guide

Advanced Programming Guide

Advanced Programming Guide

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6.9 <strong>Programming</strong> with Color • 28510.50–0.51 2 3 4 5 6x–1If you add color to two curves simultaneously, the two colorings areindependent.> q := plot( cos(2*x) + sin(x), x=0..2*Pi ):> addcolor( plots[display](p, q) );10.50–0.51 2 3x4 5 6–1–1.5–2The addcolor procedure also works on three-dimensional spacecurves.> spc := plots[spacecurve]( [ cos(t), sin(t), t ], t=0..8*Pi,> numpoints=100, thickness=2, color=black ):> addcolor( spc );

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!