MATLAB Answers

Kobi
0

how to save gif animation with white or transparent background?

Asked by Kobi
on 16 Oct 2014
Latest activity Edited by Kevin Li
on 27 Jul 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)?

  0 Comments

Sign in to comment.

2 Answers

Answer by Kevin Li
on 27 Jul 2017
Edited by Kevin Li
on 27 Jul 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.

  0 Comments

Sign in to comment.


Answer by Kobi
on 18 Oct 2014

is it even possible?

  0 Comments

Sign in to comment.