compositor.requiredVersion = 1;
var NUM_LINES = 1000;
var BUFFER = 0;
desktop.fillLayer(new Color("black"));
var db = desktop.bounds;
var randX = new Randomizer(-BUFFER, db.width+BUFFER);
var randY = new Randomizer(-BUFFER, db.height+BUFFER);
for (i = 0; i < NUM_LINES; i++) {
desktop.strokeStyle = new Color;
line(randX.intValue, randY.intValue, randX.intValue, randY.intValue);
}
function line(x1, y1, x2, y2) {
desktop.beginPath();
desktop.lineWidth = 1;
desktop.moveTo(new Point(x1, y1));
desktop.lineTo(new Point(x2, y2));
desktop.stroke();
}
// Apply distortion filter
var filterName = "CICircleSplashDistortion";
var f = new Filter(filterName);
f.setKeyValue("inputCenter", db.width/2, db.height/2);
f.setKeyValue("inputRadius", 150);
desktop.applyFilter(f);
Here's a modified version of the above script, with a slightly different effect:
compositor.requiredVersion = 1;
var NUM_LINES = 1000;
var BUFFER = 0;
desktop.fillLayer(new Color("black"));
// draw some lines (by charles.m.dietrich)
function line(x1, y1, x2, y2) {
desktop.beginPath();
desktop.lineWidth = 1;
desktop.moveTo(new Point(x1, y1));
desktop.lineTo(new Point(x2, y2));
desktop.stroke();
}
var db = desktop.bounds;
var randX = new Randomizer(-BUFFER, db.width+BUFFER);
var randY = new Randomizer(-BUFFER, db.height+BUFFER);
for (i = 0; i < NUM_LINES; i++) {
desktop.strokeStyle = new Color;
line(randX.intValue, randY.intValue, randX.intValue, randY.intValue);
}
// zoom-blur the lines from a random center
var blur = new Filter("CIZoomBlur");
blur.setKeyValue("inputAmount", 3.00);
var randX = new Randomizer(0.0, db.width);
var randY = new Randomizer(0.0, db.height);
blur.setKeyValue("inputCenter", randX.intValue, randY.intValue);
desktop.applyFilter(blur);
// draw some translucent plasma (from the "plasma" script by Google)
var plasmaLayer = new Layer(db);
var plasma = new Plasma();
var appearanceRnd = new Randomizer(0.2, 0.9);
plasma.variation = appearanceRnd.floatValue;
plasma.opaque = true;
plasma.topLeft = new Color("white");
plasma.topRight = new Color;
plasma.bottomLeft = new Color;
plasma.bottomRight = new Color("black");
plasma.drawInLayer(plasmaLayer);
var img = new Image(plasmaLayer);
img.alpha = 0.3;
desktop.drawImage(img, db);
where the scripts?
http://www.flickr.com/photos/chazmatazz/2922455833/
compositor.requiredVersion = 1; var NUM_LINES = 1000; var BUFFER = 0; desktop.fillLayer(new Color("black")); var db = desktop.bounds; var randX = new Randomizer(-BUFFER, db.width+BUFFER); var randY = new Randomizer(-BUFFER, db.height+BUFFER); for (i = 0; i < NUM_LINES; i++) { desktop.strokeStyle = new Color; line(randX.intValue, randY.intValue, randX.intValue, randY.intValue); } function line(x1, y1, x2, y2) { desktop.beginPath(); desktop.lineWidth = 1; desktop.moveTo(new Point(x1, y1)); desktop.lineTo(new Point(x2, y2)); desktop.stroke(); } // Apply distortion filter var filterName = "CICircleSplashDistortion"; var f = new Filter(filterName); f.setKeyValue("inputCenter", db.width/2, db.height/2); f.setKeyValue("inputRadius", 150); desktop.applyFilter(f);Here's a modified version of the above script, with a slightly different effect:
compositor.requiredVersion = 1; var NUM_LINES = 1000; var BUFFER = 0; desktop.fillLayer(new Color("black")); // draw some lines (by charles.m.dietrich) function line(x1, y1, x2, y2) { desktop.beginPath(); desktop.lineWidth = 1; desktop.moveTo(new Point(x1, y1)); desktop.lineTo(new Point(x2, y2)); desktop.stroke(); } var db = desktop.bounds; var randX = new Randomizer(-BUFFER, db.width+BUFFER); var randY = new Randomizer(-BUFFER, db.height+BUFFER); for (i = 0; i < NUM_LINES; i++) { desktop.strokeStyle = new Color; line(randX.intValue, randY.intValue, randX.intValue, randY.intValue); } // zoom-blur the lines from a random center var blur = new Filter("CIZoomBlur"); blur.setKeyValue("inputAmount", 3.00); var randX = new Randomizer(0.0, db.width); var randY = new Randomizer(0.0, db.height); blur.setKeyValue("inputCenter", randX.intValue, randY.intValue); desktop.applyFilter(blur); // draw some translucent plasma (from the "plasma" script by Google) var plasmaLayer = new Layer(db); var plasma = new Plasma(); var appearanceRnd = new Randomizer(0.2, 0.9); plasma.variation = appearanceRnd.floatValue; plasma.opaque = true; plasma.topLeft = new Color("white"); plasma.topRight = new Color; plasma.bottomLeft = new Color; plasma.bottomRight = new Color("black"); plasma.drawInLayer(plasmaLayer); var img = new Image(plasmaLayer); img.alpha = 0.3; desktop.drawImage(img, db);beautiful images
I used Top Draw to make some images for my business cards.
I managed to put together a script of my own, based on the Dash and Pie scripts, if anyone's interested: http://files.me.com/bdfortin/qg0q17
Sample images here: http://imgur.com/EOcGf&VR6cZ
It takes a little longer than some of the other scripts because it does multiple blurs. I call it Blurred Rings.