how to save gif animation with white or transparent background?

43 visualizaciones (últimos 30 días)
Kobi
Kobi el 16 de Oct. de 2014
Editada: Kevin Li el 27 de Jul. de 2017
when i save gif as you can see in this code:
https://dl.dropboxusercontent.com/u/38094905/Shape_animation_script.m
the background is saved in gray color how can i save gif animation with white/transparent(same as when i save as png)?

Respuestas (2)

Kevin Li
Kevin Li el 27 de Jul. de 2017
Editada: Kevin Li el 27 de Jul. de 2017
I have tried the following command and it works.
set(gcf, 'color', 'white');
In the command, "gcf" is "Current figure handle".
As for transparent background, you can change 'white' to 'none', but the background may display as black. I think it is because gif file does not support alpha channel as png does.

Kobi
Kobi el 18 de Oct. de 2014
is it even possible?

Categorías

Más información sobre Animation en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by