Hi,
When I use moho:SetNewShapeLineWidth to set the stroke width before creating a shape I notice that a line width of 0.001 is equivalent to a stroke width of 1.08 (in the style pallete). I am assuming that the SetNewShapeLineWidth is using the standard Moho co-ordinate system units where sceen height is 2.0 ? What units does the stroke width use?
Thank you
Line width
Moderators: Víctor Paredes, Belgarath, slowtiger
- hayasidist
- Posts: 3830
- Joined: Wed Feb 16, 2011 8:12 pm
- Location: Kent, England
Re: Line width
Thank you Hayasidist.
So from what I can understand, your observation is that at screen resolution 1080p a stroke line width (in the style pallet) of 1 is 0.5 px?
I think my observation concures with that:
At 1080p when I set line width in my script to 0.001 moho units it translates to 1.08 line width in the style pallete.
So 1 moho unit = line width of 1080 in style pallete
Since 2 moho units = 1080 pixels, line with in style pallete of 1 is 0.5px
Thanks to your insight, I get why there is a difference ie one is screen resolution independent (line width in script) whilst the other is screen resolution dependent (line width in style pallete).
To convert from one to the other:
line width in style pallete = line width in script x screen resolution height
So from what I can understand, your observation is that at screen resolution 1080p a stroke line width (in the style pallet) of 1 is 0.5 px?
I think my observation concures with that:
At 1080p when I set line width in my script to 0.001 moho units it translates to 1.08 line width in the style pallete.
So 1 moho unit = line width of 1080 in style pallete
Since 2 moho units = 1080 pixels, line with in style pallete of 1 is 0.5px
Thanks to your insight, I get why there is a difference ie one is screen resolution independent (line width in script) whilst the other is screen resolution dependent (line width in style pallete).
To convert from one to the other:
line width in style pallete = line width in script x screen resolution height