Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Community Boards > Just for Kicks Challenges

Reply
 
Thread Tools Rating: Thread Rating: 7 votes, 5.00 average. Display Modes
Old 10-02-2003, 09:22 AM   #1
vulcanpimp
Registered User
 
Join Date: Aug 2003
Posts: 116
Default Jackson Pollocks paint drip

Since my other challenge attracted so much interest I've decided to start a new one. This is based on the simple script of paint drips. This can be however simple or complicated as you wish.

In mine I've tried to include an element of velocity. paint drips off a brush depending on the speed you move the brush. If the brush is not moving the paint will drip directly underneath it.

Also note that if you click the mouse the color will change.

Ps its not as easy as it seems to make a masterpiece like the great post modernist painter Jackson Pollock.

The code can be downloaded from my site here as a text file

http://www.geocities.com/hairybobby2...aintspray.html

or you can mesh about copying the code from the browser here

ActionScript Code:
leafcolor = [0x111833, 0xffffff, 0xff3204, 0x74dfff]; indy = 2; _root.createEmptyMovieClip("grad", 1); var oldpos = {x:_root._xmouse, y:_root._ymouse}; var average = {xx:_root._xmouse-oldpos.x, yy:(average.yy*.9)+((_root._xmouse-oldpos.y)*0.1)}; _root.grad.onMouseDown = function() {     indy = indy+1;     if (indy == 3) {         indy = 0;     } }; _root.grad.onEnterFrame = function() {     average.xx = (average.xx*0.3)+((_root._xmouse-oldpos.x)*0.7);     average.yy = (average.yy*0.3)+((_root._ymouse-oldpos.y)*0.7);     xx = _root._xmouse+(oldaveragex*1.4);     yy = _root._ymouse+(oldaveragey*1.4);     if (oldaveragex-average.xx < 0 || oldaveragey-average.yy<0) {         average.xx = average.xx*0.7;         average.yy = average.yy*0.7;         rando = random(2);         size = random(36)+3;         for (i=0; i<Math.abs(average.xx)/3; i++) {             size = random(14);             xxx = random(20)-10+_root._xmouse+(oldaveragex*(0.1*random(20)));             yyy = random(20)-10+_root._ymouse+(oldaveragey*(0.1*random(20)));             grad.lineStyle(size, (leafcolor[indy]), 10*random(10));             grad.moveTo(xxx-1, yyy-1);             grad.lineTo(xxx+1, yyy+1);         }     } else {         rando = random(116);         size = random(5);     }     if (rando == 1) {         grad.lineStyle(size, (leafcolor[indy]), 20);         grad.moveTo(xx-1, yy-1);         grad.lineTo(xx+1, yy+1);     }     oldaveragex = average.xx;     oldaveragey = average.yy;     oldpos.x = _root._xmouse;     oldpos.y = _root._ymouse; };

Last edited by vulcanpimp; 10-04-2003 at 08:32 AM..
vulcanpimp is offline   Reply With Quote
Old 10-02-2003, 10:19 AM   #2
senocular
six eyes
 
senocular's Avatar
 
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,758
Send a message via ICQ to senocular Send a message via AIM to senocular Send a message via MSN to senocular Send a message via Yahoo to senocular
Default

disable smilies
__________________
(6)
senocular is offline   Reply With Quote
Old 10-03-2003, 09:36 AM   #3
vulcanpimp
Registered User
 
Join Date: Aug 2003
Posts: 116
Default

have just recoded it so it moves
ActionScript Code:
leafcolor = [0x111833, 0xffffff, 0xff3204, 0x74dfff]; indy = 2; deptha = 0; var oldpos = {x:_root._xmouse, y:_root._ymouse}; var average = {xx:_root._xmouse-oldpos.x, yy:(average.yy*.9)+((_root._xmouse-oldpos.y)*0.1)}; _root.onMouseDown = function() {     indy = indy+1;     if (indy == 3) {         indy = 0;     } }; _root.onEnterFrame = function() {     average.xx = (average.xx*0.3)+((_root._xmouse-oldpos.x)*0.7);     average.yy = (average.yy*0.3)+((_root._ymouse-oldpos.y)*0.7);     xx = _root._xmouse+(oldaveragex*1.4);     yy = _root._ymouse+(oldaveragey*1.4);     if (oldaveragex-average.xx<0 || oldaveragey-average.yy<0) {         average.xx = average.xx*0.7;         average.yy = average.yy*0.7;         rando = random(2);         size = random(36)+3;         for (i=0; i<Math.abs(average.xx)/3; i++) {             deptha += 1;             size = random(14);             xxx = random(20)-10+_root._xmouse+(oldaveragex*(0.1*random(20)));             yyy = random(20)-10+_root._ymouse+(oldaveragey*(0.1*random(20)));             createsplash(xxx, yyy, size, leafcolor[indy], deptha);         }     } else {         rando = random(116);         size = random(5);     }     if (rando == 1) {         xxx = random(20)-10+_root._xmouse+(oldaveragex*(0.1*random(20)));         yyy = random(20)-10+_root._ymouse+(oldaveragey*(0.1*random(20)));         createsplash(xxx, yyy, size, leafcolor[indy], deptha);     }     oldaveragex = average.xx;     oldaveragey = average.yy;     oldpos.x = _root._xmouse;     oldpos.y = _root._ymouse; }; function createsplash(xxxx, yyyy, sizer, leafcolors, deptha) {     var splasha = this.createEmptyMovieClip("a"+deptha, deptha);     splasha.endy = yyyy;     splasha.endx = xxxx;     splasha.lineStyle(sizer, leafcolors, 10*random(10));     splasha.moveTo(-1, -1);     splasha.lineTo(1, 1);     splasha._x = _root._xmouse;     splasha._y = _root._ymouse;     splasha.onEnterFrame = function() {         this._x = this._x+((this.endx-this._x)*0.5);         this._y = this._y+((this.endy-this._y)*0.5);         if (Math.abs(this._x-this.endx)<2) {             this.onEnterFrame = undefined;         }     }; }

Last edited by vulcanpimp; 10-04-2003 at 08:33 AM..
vulcanpimp is offline   Reply With Quote
Old 10-04-2003, 08:36 AM   #4
vulcanpimp
Registered User
 
Join Date: Aug 2003
Posts: 116
Default



aaah I see, disable smillies , I thought that was some kind of perculiar cryptic message. I didn't realise that the code didn't work because I haven't got flash on the main computer I surf with.

:
vulcanpimp is offline   Reply With Quote
Old 10-04-2003, 05:33 PM   #5
pom
Allez les Bleus!!!
 
pom's Avatar
 
Join Date: Oct 2002
Location: Paname
Posts: 2,495
Default

Can you post examples of paintings by this guy, vulcanpimp? I'm afraid I've never seen anything he's done *shame*
pom is offline   Reply With Quote
Old 10-06-2003, 07:35 AM   #6
vulcanpimp
Registered User
 
Join Date: Aug 2003
Posts: 116
Default

http://www.ibiblio.org/wm/paint/auth...k.number-8.jpg

http://www.nga.gov/feature/pollock/painting1.html

http://www.google.com/search?hl=en&i...ackson+pollock



but I don't think these little jpegs do justice to the real images. At the time he caused quite a stir. People who were not interested in abstract painting suddenly got the buzz. He made paintings by just dripping paint onto a canvas and sold them for shed loads of money. Then everyoe else tried and thought they were going to do the same but no one was quite as good as him.
vulcanpimp is offline   Reply With Quote
Old 10-06-2003, 01:02 PM   #7
McGiver
Goldmember
 
McGiver's Avatar
 
Join Date: Feb 2003
Location: bavaria in germany
Posts: 1,627
Default

I think I should start painting then... (doesn't seems to be a lot of work )
@vulcanpimp:
if this guy sold his images for quite a lot of money, you definately should copyright your engine, because it has to be really worthy then...

Last edited by McGiver; 10-06-2003 at 01:06 PM..
McGiver is offline   Reply With Quote
Old 10-07-2003, 10:01 AM   #8
vulcanpimp
Registered User
 
Join Date: Aug 2003
Posts: 116
Default

I could stand all day in the local market and not sell one of my computer generated art pictures. Still its good fun.

Oh POM I forgot to say that the second version is based on one of your programs - your electric challenge on senoculars site. (well the createsplash function is anyway). though I don't think my second version is as good as the first because its tends to hang because of too many clips. But the template for it is yours.
vulcanpimp is offline   Reply With Quote
Old 10-08-2003, 10:25 AM   #9
pom
Allez les Bleus!!!
 
pom's Avatar
 
Join Date: Oct 2002
Location: Paname
Posts: 2,495
Default

Quote:
Originally posted by vulcanpimp
Oh POM I forgot to say that the second version is based on one of your programs - your electric challenge on senoculars site.
I'm not sure I see what you're talking about but it's cool
pom is offline   Reply With Quote
Old 10-09-2003, 11:28 AM   #10
vulcanpimp
Registered User
 
Join Date: Aug 2003
Posts: 116
Default

POM

http://www.kirupaforum.com/forums/sh...5&pagenumber=2

well it was this example I pinched the template. Its just the code structure I pinched with your createarc function becoming my createsplash function

I wouldn't have mentioned it but you were the first person to reply.
vulcanpimp is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:55 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.
You Rated this Thread: