# This one's all mine. Well, its GPL but I"m the author and creator.
# I think you need gimp 1.1 or better for this - if you don't, please let
# This one's all mine. Well, its GPL/Artisitic but I"m the author and creator. # I think you need gimp 1.1 or better for this - if you don't, please let
# me know
# As a fair warning, some of this code is a bit ugly. But thats perl for ya :)
#
# Revision History:
# 1.0 - Initial (too early) release
# 1.1 - Second (still ugly) release: Made the perspective setting actually do
# something
# 1.2 - Used some of the convienence functions, and made things a little eaiser
# from the user's standpoint too. Also moved it from the
# Filters->Animations-> menu to Xtns->Animations. I think its
# clearer whats going on this way. It also works w/ any 2 layers now.
# Seth Burgess
# <sjburges@gimp.org>
useGimp;
useGimp1.06;
useGimp::Fu;
useGimp::Util;
# Gimp::set_trace(TRACE_ALL);
sub hideallbut{
($img,@butlist)=@_;
@layers=$img->get_layers();
foreach$layer(@layers){
if($layer->get_visible()){
$layer->set_visible(0);
}
}
foreach$but(@butlist){
if(!$layers[$but]->get_visible()){
$layers[$but]->set_visible(1);
}
}
};
sub saw{# a sawtooth function on PI
($val)=@_;
if($val<3.14159/2.0){
...
...
@@ -42,40 +36,34 @@ sub saw { # a sawtooth function on PI
}
else{
return(-1+$val/3.14159);
};
};
sub spin_layer{
my($img,$spin,$dest,$numframes)=@_;
}
}
# Now lets spin it!
sub spin_layer{# the function for actually spinning the layer