[Pharo-dev] stroke width in Athens

2014-01-03 Thread Alexandre Bergel
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:There is just one code to draw a box, which is: athensCanvas pathTransform restoreAfter: [ athensCanvas pathTransform translateBy: rectangle

Re: [Pharo-dev] stroke width in Athens

2014-01-03 Thread Henrik Johansen
On 03 Jan 2014, at 1:58 , Alexandre Bergel alexandre.ber...@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

Re: [Pharo-dev] stroke width in Athens

2014-01-03 Thread Igor Stasenko
Right: scaling scales everything not just geometry. this is intentionally done so, that you have a uniform way to scale up/down whole scenery i.e. if you want to render same scene but 2 times bigger , just put 'scaleBy: 2' before and you done, and it will be exactly 2 times bigger (as if you

Re: [Pharo-dev] stroke width in Athens

2014-01-03 Thread Igor Stasenko
to make stroke width unaffected by scale, you obviously will need to scale it down by same factor as you scaled geometry i.e.: canvas pathTransform scaleBy: factor. strokePaint width: myWidth/factor. On 3 January 2014 17:08, Igor Stasenko siguc...@gmail.com wrote: Right: scaling scales

Re: [Pharo-dev] stroke width in Athens

2014-01-03 Thread Alexandre Bergel
to make stroke width unaffected by scale, you obviously will need to scale it down by same factor as you scaled geometry i.e.: canvas pathTransform scaleBy: factor. strokePaint width: myWidth/factor. Thanks Igor! This works like a charm. I have been intensively working with Athens for a