diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /graphics/asymptote/examples/curvedlabel3.asy |
Initial commit
Diffstat (limited to 'graphics/asymptote/examples/curvedlabel3.asy')
-rw-r--r-- | graphics/asymptote/examples/curvedlabel3.asy | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/graphics/asymptote/examples/curvedlabel3.asy b/graphics/asymptote/examples/curvedlabel3.asy new file mode 100644 index 0000000000..5bee2342d8 --- /dev/null +++ b/graphics/asymptote/examples/curvedlabel3.asy @@ -0,0 +1,17 @@ +size(200); +import labelpath3; + +path3 g=(1,0,0)..(0,1,1)..(-1,0,0)..(0,-1,1)..cycle; +path3 g2=shift(-Z)*reverse(unitcircle3); + +string txt1="\hbox{This is a test of \emph{curved} 3D labels in +\textbf{Asymptote} (implemented with {\tt texpath}).}"; + +string txt2="This is a test of curved labels in Asymptote\\(implemented +without the {\tt PSTricks pstextpath} macro)."; + +draw(surface(g),paleblue+opacity(0.5)); +draw(labelpath(txt1,subpath(g,0,reltime(g,0.95)),angle=-90),orange); + +draw(g2,1bp+red); +draw(labelpath(txt2,subpath(g2,0,3.9),angle=180,optional=rotate(-70,X)*Z)); |