Very true!
looks like to be the thing. Thanks!
Alexandre
On Jan 3, 2014, at 11:12 AM, Henrik Johansen <henrik.s.johansen@veloxit.no> wrote:
>
> On 03 Jan 2014, at 1:58 , Alexandre Bergel <alexandre.bergel@me.com> wrote:
>
>> Hi!
>>
>> Apparently, the width (in pixels) of a stroke in athens seems to vary with the size of the path. Am I right?
>>
>> For example, I have the following rendering:
>>
>> <Screen Shot 2014-01-03 at 9.54.29 AM.png>
>>
>> There is just one code to draw a box, which is:
>>
>> �� �� ��athensCanvas pathTransform restoreAfter: [
>> �� �� �� �� �� �� ��athensCanvas pathTransform
>> �� �� �� �� �� �� �� �� �� �� ��translateBy: rectangle center;
>> �� �� �� �� �� �� �� �� �� �� ��scaleBy: rectangle extent / 2.
>>
>> �� �� �� �� �� �� ��athensCanvas
>> �� �� �� �� �� �� �� �� �� �� ��setPaint: color;
>> �� �� �� �� �� �� �� �� �� �� ��drawShape: self path.
>>
>> �� �� �� �� �� �� ��strokePaint �� �� ifNotNil:
>> �� �� �� �� �� �� �� �� �� �� ��[ (athensCanvas
>> �� �� �� �� �� �� �� �� �� �� �� �� �� �� ��setStrokePaint: strokePaint) width: 0.1.
>> �� �� �� �� �� �� �� �� �� �� �� �� �� �� ��athensCanvas drawShape: path ��]
>> �� �� �� �� �� �� ��]
>>
>> Having a width of 1 makes a very large border.
>> Do I miss something?
>>
>> Cheers,
>> Alexandre
>> --
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel ��http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>
>>
>>
> Well yes, you are using scaleBy:.
> That scaling applies to the stroke width of the path as well, I���d imagine...
>
> Cheers,
> Henry
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel ��http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.