Scaling maths

I have a line with strokeWidth=10 and I’m scaling it down. During this process the strokeWidth appears to get thinner, of course, but I’d like to keep it at an apparent 10.

The problem is that I’m scaling on the X and Y with different amounts, so I’m not sure of the effective scaling value being applied to the strokeWidth.

It’s this…

line.strokeWidth = 10 / line.xScale

Also, I wasn’t scaling differently after all.

lol

It’s this…

line.strokeWidth = 10 / line.xScale

Also, I wasn’t scaling differently after all.

lol