Hi guys,
this is nice code to create dynamic color line,
this is myFirst code (not all ) heeheee but i thought to make it dynamic color and thickness.
_root.createEmptyMovieClip("paper", 1);
paper.onMouseMove = function() {
strok = 5;
myStrock = Math.round(Math.random()*strok);
myColor = new color();
myColor = Math.round(Math.random()*0xFFFFFF);
paper.lineStyle(myStrock, myColor, 100 );
paper.moveTo(275, 200 );
paper.lineTo(_xmouse, _ymouse);
};
is it [color=red]GOOD[/color] as a start :bandit:
system
2
this could be fun too:
_root.createEmptyMovieClip(“paper”, 1);
paper.onMouseMove = function() {
paper.lineTo(_xmouse, _ymouse);
strok = 5;
myStrock = Math.round(Math.random()*strok);
myColor = new color();
myColor = Math.round(Math.random()*0xFFFFFF);
paper.lineStyle(myStrock, myColor, 100 );
paper.moveTo(_xmouse, _ymouse );
};
just one line moved and edited.
jeremy
system
4
_root.createEmptyMovieClip("paper", 1);
paper.onMouseMove = function() {
paper.lineTo(_xmouse, _ymouse);
strok = 25;
myStrock = (Math.sin(a+=.2)+1)/2*strok;
var red=Math.sin(r+=.02)*255;
var green=Math.sin(g+=.004)*255;
var blue=Math.sin(b+=.01)*255;
myColor = red << 16 | green << 8 | blue;
paper.lineStyle(myStrock, myColor, 100 );
paper.moveTo(_xmouse, _ymouse );
};
will make a nice pattern
pom :cowboy:
system
5
Hey Pom :cowboy:
as usual you amazing me…
nice work man