From eb3c42128f0b77a8078e72610f90317b0a02a5c6 Mon Sep 17 00:00:00 2001 From: Martin Mares <mj@ucw.cz> Date: Wed, 3 May 2023 10:46:14 +0200 Subject: [PATCH] =?UTF-8?q?Asymptote:=20Drobn=C3=A1=20vylep=C5=A1en=C3=AD?= =?UTF-8?q?=20p=C5=99=C3=ADklad=C5=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- asymptote/asy-label.asy | 11 ++++++++++- asymptote/bezier.asy | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/asymptote/asy-label.asy b/asymptote/asy-label.asy index 1a7611a..76a2b20 100644 --- a/asymptote/asy-label.asy +++ b/asymptote/asy-label.asy @@ -5,15 +5,24 @@ labelmargin = 0.5; label(rule, (0,0)); dot((0,0), red); +label("nic", (0,-0.5)); label(rule, (1,0), N); dot((1,0), red); +label("N", (1,-0.5)); label(rule, (2,0), 2N); dot((2,0), red); +label("2N", (2,-0.5)); label(rule, (3,0), W); dot((3,0), red); +label("W", (3,-0.5)); -label(rule, (4,0), dir(30)); +label(rule, (4,0), S); dot((4,0), red); +label("S", (4,-0.5)); + +label(rule, (5,0), dir(30)); +dot((5,0), red); +label("dir(30)", (5,-0.5)); diff --git a/asymptote/bezier.asy b/asymptote/bezier.asy index 1f55afe..4c680f7 100644 --- a/asymptote/bezier.asy +++ b/asymptote/bezier.asy @@ -44,6 +44,7 @@ xf = shift((0.3, -2.3)); dot(xf * a); dot(xf * bb); dot(xf * cc); +draw(xf * (a{curl 0} .. bb .. {curl 0}cc), green); draw(xf * (a .. bb .. cc)); draw(xf * (a{curl 2} .. bb .. {curl 2}cc), red); draw(xf * (a{curl 10} .. bb .. {curl 10}cc), blue); -- GitLab