[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: outline color, @Line width
From: |
Valery Ushakov |
Subject: |
Re: outline color, @Line width |
Date: |
Sun, 5 Jan 2014 22:53:49 +0400 |
User-agent: |
Mutt/1.4.2.3i |
On Sun, Jan 05, 2014 at 01:12:51 +0100, J?r?my Zurcher wrote:
> @Diag
> {
> # right and left lines
> blue @Color @Line from { -1.2c -0.7c } to { 10.0c -0.7c }
> blue @Color @Line from { 15.0c -0.7c } to { 17.0c -0.7c }
> # star
> blue @Color {
> @Line from { 8.8c -0.7c } to { 9.45c 0.2c }
> @Line from { 9.45c 0.2c } to { 9.6c -0.7c }
> @Line from { 9.6c -0.7c } to { 8.85c -0.15c }
> @Line from { 8.85c -0.15c } to { 9.85c -0.15c }
> @Line from { 9.85c -0.15c } to { 8.8c -0.7c }
> }
> }
>
> the 2 lines need to be thicker,
> I could use outlinewidth with shape, but I can't draw a single line.
@Line (a macro for @Link path { line }) has pathwidth parameter:
import @Geometry
named pathwidth
named thin { 0.04 ft }
named medium { 0.08 ft }
named thick { 0.12 ft }
{ pathwidth }
so you can give your @Line pathwidth { thick } or pathwidth { 0.3 ft }.
> the star should definitly be a shape, but how can I define the
> outline color?
I'm not sure I understand. Perhaps User's Guide section 9.10 "Expert
usage: defining new shapes" (p.221) is what you are looking for?
-uwe