Search found 154 matches

by r_hyde
Sat Sep 13, 2008 11:12 pm
Forum: Coding Questions
Topic: Check if 2D points are clockwise or counterclockwise...
Replies: 6
Views: 1411

same here - crash when I press 'View' button, just after screen init.
by r_hyde
Sat Jul 26, 2008 7:49 pm
Forum: Off Topic
Topic: Some Assembly Language commands that you may have forgotten
Replies: 9
Views: 2098

How did I ever miss DWIMNWIS? I could have used that one :lol:
by r_hyde
Tue Jun 24, 2008 5:28 pm
Forum: Off Topic
Topic: Germs? What germs?
Replies: 14
Views: 2870

...so just how strong is your cat then, milan?

:lol:
by r_hyde
Sat Jun 14, 2008 11:30 am
Forum: Off Topic
Topic: Next Release
Replies: 5
Views: 2030

Just ask for help with each problem you can see coming up in the program you want to write and then when srod, Sparkie, Netmaestro etc post the solutions just join 'em together and you're done.
Shhh! You're giving away my secret :twisted:
by r_hyde
Sat Apr 26, 2008 12:54 am
Forum: Coding Questions
Topic: Tinting an image?
Replies: 6
Views: 2171

I was slightly wrong about the color space - the best space to work in is HSL, which is similar to HSV but provides more explicit control of a color's "whiteness". Since this is a multiply filter, the closer to white the tint color is the less it will affect the target image. Here is an example of ...
by r_hyde
Thu Apr 24, 2008 6:02 pm
Forum: Coding Questions
Topic: Tinting an image?
Replies: 6
Views: 2171

It's still possible, you just need to work in HSV color space instead of RGB. In HSV, the hue and saturation will control the color of the tint, and the value will control the amount. The only problem is that PureBasic doesn't provide primitives for working with colors in HSV-space, so you need to ...
by r_hyde
Thu Apr 24, 2008 9:09 am
Forum: Coding Questions
Topic: Tinting an image?
Replies: 6
Views: 2171

The code below is what I have been using for image tinting. It doesn't shift color channels; it's actually a multiply filter. As such, the amount of tint is controlled by the value of the multiply color. This example operates on an image in-place, but modifying it to return a new image would be ...
by r_hyde
Sun Apr 13, 2008 3:36 am
Forum: Off Topic
Topic: KDE4 - rant!
Replies: 22
Views: 3327

@pdwyer: you're probably referring to Cedega, which is a commercialized version of wine that puts emphasis on game support. It's still a pain in the neck to configure and mostly a waste of time (although I will say that once you get some games actually running under wine/cedega they feel faster than ...
by r_hyde
Sat Apr 12, 2008 7:31 am
Forum: Off Topic
Topic: KDE4 - rant!
Replies: 22
Views: 3327

RE: KDE4

There was a philosophy behind this version that had me excited when I first heard about it, because the KDE folks assembled a team of artists, designers & usability experts to envision what they hoped would be an evolutionary step in OS look-n-feel. Now it's out, and what a friggin ...
by r_hyde
Thu Apr 03, 2008 6:34 am
Forum: Off Topic
Topic: Political Compass
Replies: 50
Views: 14200

I don't feel like going to the trouble to upload a pic, so here's the text version of where I stand:

Economic Left/Right: -6.00
Social Libertarian/Authoritarian: -6.56

That puts me about as far left as Gandhi, but a fair bit more libertarian.
by r_hyde
Thu Mar 06, 2008 11:47 pm
Forum: Off Topic
Topic: Chuffing heck!
Replies: 27
Views: 4334

You made me think back to what I remember as a nightmarish project I once completed over a single weekend of coding in Python. I just went back and checked it, and the number of lines (just the wheat, no chaff) totaled only 1446 lines. So I stand in awe of your 1200 in a day, sir :shock:
by r_hyde
Sun Mar 02, 2008 10:02 pm
Forum: Coding Questions
Topic: Point in client rect
Replies: 10
Views: 2674

srod, that's a bit complicated for something like finding out if a single point is inside a window's client area, dontcha think? I've never actually used MapWindowPoints_(), so I could be wrong - in which case I'd be happy to see some code :)
by r_hyde
Sun Mar 02, 2008 10:12 am
Forum: Off Topic
Topic: Gas Prices RANT!!!!
Replies: 91
Views: 14424

A slight aside on the Energy Cost front... we DO pay more for energy in Texas (and the rest of the gulf coast!) because we have to run our AC from MARCH to DECEMBER.

San Francisco pays more for electricity, but the average tep in san fran is 68f... They have more than 32 days a year over 80f and ...
by r_hyde
Sun Mar 02, 2008 3:59 am
Forum: Coding Questions
Topic: Point in client rect
Replies: 10
Views: 2674

Here's an example of what I was thinking of with GetClientRect_():
OpenWindow(0, #PB_Ignore, #PB_Ignore, 300, 300, "")

in.b = #False
Repeat
ev = WaitWindowEvent(10)
GetCursorPos_(@pt.POINT)
ScreenToClient_(WindowID(0), @pt)
GetClientRect_(WindowID(0), @rc.RECT)
If PtInRect_(@rc, pt\x, pt\y ...
by r_hyde
Sun Mar 02, 2008 1:10 am
Forum: Coding Questions
Topic: Point in client rect
Replies: 10
Views: 2674

Have you tried GetClientRect_()?