[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to prevent ly:stencil-rotate to modify dimensions
From: |
David Kastrup |
Subject: |
Re: How to prevent ly:stencil-rotate to modify dimensions |
Date: |
Sun, 11 Mar 2018 14:28:41 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Thomas Morley <address@hidden> writes:
> Hi all,
>
> let's say I've a stencil, which I want to rotate around it's center.
> For the example below I choosed make-circle-stencil, because a circle
> center-rotated _should_ always look equal.
> Though, applying ly:stencil-rotate modifies the dimensions of said
> circle for degrees not equal to (* 90 n).
> (Made visible by boxing it)
>
> Why?
Because it is the rectangular bounding box that is getting rotated? So
typically the covered area will increase unless you are rotating by
multiples of 90 degrees where the box covers the full bounding box after
rotation again.
> How to prevent?
No way that I know of.
> \markup
> \override #'(box-padding . 0)
> \box {
> \stencil
> #(make-circle-stencil 0.5 0.1 #f)
> \stencil
> #(ly:stencil-rotate (make-circle-stencil 0.5 0.1 #f) 10 0 0)
> }
--
David Kastrup
- How to prevent ly:stencil-rotate to modify dimensions, Thomas Morley, 2018/03/11
- Re: How to prevent ly:stencil-rotate to modify dimensions, Andrew Bernard, 2018/03/11
- Re: How to prevent ly:stencil-rotate to modify dimensions,
David Kastrup <=
- Re: How to prevent ly:stencil-rotate to modify dimensions, Torsten Hämmerle, 2018/03/11
- Re: How to prevent ly:stencil-rotate to modify dimensions, Thomas Morley, 2018/03/11
- Re: How to prevent ly:stencil-rotate to modify dimensions, Torsten Hämmerle, 2018/03/11
- Re: How to prevent ly:stencil-rotate to modify dimensions, David Kastrup, 2018/03/11
- Re: How to prevent ly:stencil-rotate to modify dimensions, Torsten Hämmerle, 2018/03/12
- Re: How to prevent ly:stencil-rotate to modify dimensions, David Kastrup, 2018/03/12
- Re: How to prevent ly:stencil-rotate to modify dimensions, Torsten Hämmerle, 2018/03/12