trevorsandy / lpub3d

An LDraw™ editor for LEGO® style digital building instructions.
https://trevorsandy.github.io/lpub3d/
130 stars 19 forks source link

Fade opacity value inverted #708

Closed trevorsandy closed 1 year ago

trevorsandy commented 1 year ago

Subject

A larger value provided with the command 0 !LPUB FADE_STEPS OPACITY <value> produces a greater amount of transparency. This behaviour is inverted. In fact a larger 'opacity' value should provide greater opaqueness (less transparency).

Environment

Version of LPub3D - 2.4.7 Operating system - All

Expected behaviour

Providing a larger value with the command 0 !LPUB FADE_STEPS OPACITY <value> should produce less transparency.

Actual behaviour

Transparency is inverted - i.e. a larger opacity value produces greater transparency.

Solution

Invert the behaviour so that an opacity value of, for example, 30 will provide greater transparency while a larger value, for example, 70 will produce more opaqueness so that 100 will be fully opaque and 0 will be completely transparent.

Cheers,

trevorsandy commented 1 year ago

This behaviour has been implemented.

Cheers,