Please login or register. Welcome to the Studio, guest!


Quick Links:



Aaron

Aaron Avatar
Bad Wolf

****
Dedicated Studio Member

859


November 2006
Quinine, not one person in this thread prior to your first post said they were upset because they were puppies. I understand that you find many peoples' reactions hypocritical. And in essence, they are. A binned cat can evince more outrage from some than a gunned down soldier. That aside, we aren't rational creatures. Moreover, distancing ones self becomes a lot harder when it's a video and not a news article. I'd (personally) be equally as disgusted to see a bullet take a human's life.

Now my take (as the partial human being I am) on the video: 5 creatures (species aside) totally new to the world, totally dependant, and (albeit only likely) unflinchingly loyal had their trust betrayed and were killed in an inhumane (and unnecessary) way. In response to your remark on her psychopathy, she drowned them. She tossed them one by one and laughed as she did it. She had her friend film it. She's ill.


Last Edit: Sept 4, 2010 22:49:26 GMT by Aaron

Aaron

Aaron Avatar
Bad Wolf

****
Dedicated Studio Member

859


November 2006
mikezbr Avatar
I'm here to search of the best of the proboard designers and see if they would be interested in helping me out. :D I'm creating a forum to bring together all forum networks under one roof

Never heard that one before. *cough*

Anywhoooo

Welcome to Studio Zero. =)

Aaron

Aaron Avatar
Bad Wolf

****
Dedicated Studio Member

859


November 2006
Well the original idea was just to create a cross-browser implementation. I believe most major browsers at the time (short of IE6) supported a getElementsByClassName in their html dom host environment.

Aaron

Aaron Avatar
Bad Wolf

****
Dedicated Studio Member

859


November 2006
Click. Avoid the video. Just read the comments.

And yeah, I know. "Worse is going on right now and you aren't crying." Not the point.

Aaron

Aaron Avatar
Bad Wolf

****
Dedicated Studio Member

859


November 2006
This is probably a better example on the 3D end. Moving 2d faces in 3d space is easy. The fun step is compiling those faces into explicit shapes.

Aaron

Aaron Avatar
Bad Wolf

****
Dedicated Studio Member

859


November 2006
There's no clean way to reset it. You aren't passing any information to the function for it to know when to terminate $cycles. A reset within the loop would require knowing the counter and knowing the condition it's being checked against. And passing that info each time is just as dirty as just writing a reset() function.

Then again, i'm slow. I may not even understand your function correctly. It's basically performing this operation, I assume?

$counter = 0;
array("class1", "class2", "class3")[$counter ++ % 3]

Edit: Is that proper php? o.0


Last Edit: Aug 29, 2010 4:31:09 GMT by Aaron

Aaron

Aaron Avatar
Bad Wolf

****
Dedicated Studio Member

859


November 2006
Not a find. Coded it from scratch around lunch yesterday. Haven't done much since I started my new job earlier this month.

A few things i'd like to get back to (these uploaded versions are outdated):

3D Engine (use the arrow keys to reveal/move)

SVG Editor (just keep recoding the core. haven't added much functionality. brush/line/shapes/object property editing works)



Last Edit: Aug 29, 2010 0:37:18 GMT by Aaron

Aaron

Aaron Avatar
Bad Wolf

****
Dedicated Studio Member

859


November 2006
Was looking through some entries for some 10k challenge thing. Came across a nifty, little app that printed different shapes across the page onclick.

Click - Figured it would be nice to be able to make your own. Just click, move the pivot markers to adjust the path, and hit enter.



Aaron

Aaron Avatar
Bad Wolf

****
Dedicated Studio Member

859


November 2006
Nope.

Aaron

Aaron Avatar
Bad Wolf

****
Dedicated Studio Member

859


November 2006
This thread needs more AJAX.

Aaron

Aaron Avatar
Bad Wolf

****
Dedicated Studio Member

859


November 2006
You dropped your other course just like that?

Aaron

Aaron Avatar
Bad Wolf

****
Dedicated Studio Member

859


November 2006

Aaron

Aaron Avatar
Bad Wolf

****
Dedicated Studio Member

859


November 2006
Replaced the last snippet with Chris's number_format idea. So here we are.

Syntax: number.commify()

Number.prototype.commify = function(a) {
     return (a = this + "").replace(/\d(?!\d*$)/g, function(b, c) { return c && (c - a.split(".")[0].length) % 3 < 1 ? "," + b : b; });
}


Edit: Forgot the return statement and fixed a silly oversight.


Last Edit: Aug 22, 2010 6:15:56 GMT by Aaron

Aaron

Aaron Avatar
Bad Wolf

****
Dedicated Studio Member

859


November 2006
The only real changes have been to the hue selection bit.

hslToRgb: function(a) {
     var d = 3, hsl = [ [ [ 255, 0, 0 ], 1, 1 ], [ [255, 255, 0 ], 0, -1 ], [ [ 0, 255, 0 ], 2, 1 ], [ [0, 255, 255 ], 1, -1 ], [ [ 0, 0, 255 ], 0, 1 ], [ [ 255, 0, 255 ], 2, -1 ] ][Math.floor(a[0] / 40)];
           hsl[0][hsl[1]] += Math.floor(6.375 * (a[0] % 40)) * hsl[2];
           hsl = hsl[0];

     while(d --) {
           hsl[d] -= ((hsl[d] - 127) * (240 - a[1]) / 240);
           hsl[d] -= (a[2] > 120 ? 255 - hsl[d] : hsl[d]) * ((120 - a[2]) / 120);
     }
     return [ Math.round(hsl[0]), Math.round(hsl[1]), Math.round(hsl[2]) ];
}



Last Edit: Aug 21, 2010 4:59:46 GMT by Aaron

Aaron

Aaron Avatar
Bad Wolf

****
Dedicated Studio Member

859


November 2006
Swapped to number_format().