Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Picture系の Blend において 0 を指定すると 255 になってしまう #113

Closed
yktsr opened this issue Dec 5, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@yktsr
Copy link
Owner

yktsr commented Dec 5, 2023

@hysierra

[@kryptos_nv](https://twitter.com/kryptos_nv)
 
こんにちわ。
MVでText2Flameを使わせていただいてます。
Blend 0 だと反映されずに 255 と転記されるようなのですが、何が原因でしょうか?

<ShowPicture: 1, , Position[Upper Left][75][0], Scale[65][65], Blend[0][Normal]>
MovePictureも同じみたいでした😭
out["opacity"] = (values[0] !== null && values[0] !== undefined) ? Number(values[0]) : 255;
すみません!!とりあえずjs拝見していじってみました。
@yktsr yktsr added the bug Something isn't working label Dec 5, 2023
@yktsr yktsr changed the title Picture系の Blend が 0 反映されずに 255 と転記される Picture系の Blend において 0 を指定すると 255 になってしまう Dec 5, 2023
@yktsr
Copy link
Owner Author

yktsr commented Dec 5, 2023

> 1 || 255
< 1
> 0 || 255
< 255

out["opacity"] = Number(values[0]) || 255;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants