petit Tut pour effet vieux film ...
http://www.kirupa.com/developer/mx2004/filmgrain.htm
Le site www.fousdanim.org n’est plus mis à jour depuis le 10 juillet 2015. Les outils de recherche sont toujours actifs mais nous vous invitons à aller ailleurs pour trouver des lieux plus vivants dédiés au cinéma d’animation.
_stageH = 200;
_stageW = 300;
_effectContener = this.createEmptyMovieClip("effectContener", 9876543);
MovieClip.prototype.makeOldMovieFilter = function() {
this.clear();
this.lineStyle(0.25, 0xFFFFFF, 90);
var _randomCount = Math.round(Math.random()*10);
for (var i = 0; i<_randomCount; i++) {
this.moveOnX = Math.round(Math.random()*_stageW);
this.moveOnY = Math.round(Math.random()*_stageH);
this.moveTo(this.moveOnX, this.moveOnY);
this.curveTo(this.moveOnX+Math.round(Math.random()*5-5), this.moveOnY+Math.round(Math.random()*5-5), this.moveOnX+Math.round(Math.random()*5-5), this.moveOnY+Math.round(Math.random()*5-5));
}
_randomCount = Math.round(Math.random()*5);
for (var i = 0; i<_randomCount; i++) {
this.moveOnX = Math.round(Math.random()*_stageW);
this.moveOnY = Math.round(Math.random()*_stageH);
this.moveTo(this.moveOnX, this.moveOnY);
this.lineTo(this.moveOnX+Math.round(Math.random()*5-5), Math.round(Math.random()*_stageH));
}
};
_itvEffect=setInterval(_effectContener,"makeOldMovieFilter",100);
Retourner vers Section Flash et Vectoriel
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 1 invité