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

moviepy.video.fx.all fadein and fadeout does not fade to any other color than black? #321

Closed
davrandom opened this issue Oct 3, 2016 · 2 comments

Comments

@davrandom
Copy link

I'm trying to fade to white (or any other color than black):
newclip = vfx.fadeout(newclip,duration=1, final_color=[1,1,1])
(I guess that final_color=1 should be equivalent)
but I always get a fade to black...
Am I doing something wrong?

@davrandom davrandom changed the title moviepy.video.fx.all fadein adn fade does not fade to any other color than black? moviepy.video.fx.all fadein and fadeout does not fade to any other color than black? Oct 3, 2016
@Zulko
Copy link
Owner

Zulko commented Oct 3, 2016

Moviepy uses RGB values from 0 to 255. Try [255,255,255] instead of [1,1,1].

@davrandom
Copy link
Author

Yes, it works!
My bad... I will add this to the docs and put a pull request.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants