Today I learned that when scaling decimal numbers to convert them to rgb in flash, it's important to trim your decimals before multiplying them by 256 or 65536.
Today I learned that when scaling decimal numbers to convert them to rgb in flash, it's important to trim your decimals before multiplying them by 256 or 65536.
that i dont like to help ignorant people...
edit : ok... this is going to the bitching thread sorry...
Last edited by itadakimasu; Fri, 06-29-2007 at 03:10 PM.
What's wrong with trimming after? Maintains greater accuracy that way =]Originally Posted by complich8
10/4/04 - 8/20/07
it skews the color. We were using RGB, keeping R constant and varying GB. Wanted a gradient to progress along white->pink->red, but instead got a scale going on white->yellow->peach->red -- a curve instead of a line.
er, oh. I'd probably just throw up a bit-shift routine like this (in AS3, anyway):
var c:uint = Math.round(0xff * perc);
var color:uint = 0xff0000 | c << 8 | c;
Ok so yeah, round before merging ^_^
10/4/04 - 8/20/07
ehh, not my code... one of my users wrote it and I was helping him debug. Probably would have been better if he were using int instead of Number, so decimals would have been truncated to begin with...
The guy who wrote the code isn't particularly knowledgable about flash, and the project he's working on is the third thing he's programmed, ever.
He's doing pretty well for having almost never programmed before...
Oh, and today I learned that I would rather watch a downloaded TS version of the latest Die Hard movie than migrate configs to rhel. Not that this was exactly a big personal epiphany, mind you ...
Today I learned that viruses and spyware fucks up internet cafe computers for some reason. It's sort of a good thing, because now I know that if I sit at a infected computer in an internet cafe I'll most probably notice it.
What happens when they find out that you use Intel processor chips?
I mentioned that in both of my interviews. I still offers for both in the end. I'm good at interviews and my skills/knowledge in this field speak for themselves. I don't think they give a crap about what CPU I use at home.
That was another position, btw. I declined it because it involves "writing sample letters" and I want none of that.
Today I learned that BOC's name is Bill
10/4/04 - 8/20/07
Today I learned what it was like to be without my favorite forums at lunch... It wasn't a happy afternoon.
The Good: You're working for AMD.Originally Posted by Board of Command
The Bad: You're getting paid shit.
Actually it's the other way around for me.
Good: Pay is pretty good for a co-op job. That is the average maximum for 2nd term students.
Bad: I'm not a huge AMD fan. Hell, what if they go bankrupt during my work term?
BoC's pay seems pretty fucking nice for a college student. And none the less he gets the money working with computers, which is awesome.
Yeah, that pay rate is about $17/hr. It's not terrible, but it's not insanely good either. Don't really know how much real buying power that is, since it's $CDN, but it sounds like a pretty good pay rate for someone with BoC's experience level ...
You coulda saw that on facebook..Originally Posted by AssertnFailure
That rate will net me around around $4000 after subtracting rent and tuition for next term. Good enough since I live at home during my school terms.Originally Posted by complich8
Most jobs will pay according to standard rates for the co-op program. My rate is the average maximum for 2nd term students. You'll get MUCH higher pay in later terms; 6th (final) term jobs can go as high as $25/h, which is pretty incredible for a student employee.
Here's the salary guide for my school:
http://www.cecs.uwaterloo.ca/pdfs/we...urvey-2006.pdf
Today I learned of the programming language, Lolcode: http://lolcode.com/
It's based on those stupid "Im in ur..." cat macros and other internet phrases. For example, "I has a..." is used to declare variables and "O RLY" is used for If statements ("YA RLY" and "NO WAI" are "true" and "false" respectively).
Reading through the examples and contributions is hilarious. I imagine ending loops with "KTHXBYE" would be strangely satisfying.
<@Terra> he told me this, "man actually meeting terra is so fucking big", and he started crying. Then he bought me hot dogs