Nice Drawing API

Hi guys,
this is nice code to create dynamic color line,
this is myFirst code (not all :stuck_out_tongue: ) 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:

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.
:slight_smile:
jeremy

nice arrange Jeremy…:slight_smile:

_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 :slight_smile:

pom :cowboy:

Hey Pom :cowboy:
as usual you amazing me…:slight_smile:
nice work man