Hello McGrue!
Displaying 1-5 of 5 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Zip

If you have a moment

First version of my HSV-utilising, pseudo-pallete-shifting, I-can't-be-bothered-to-draw-more-sprites colour functions.

system.vc has two autoexec loops, the currently uncommented out runs a pretty display once, near the top of the file are some variables you can change. The other one takes input and modifys some coloured squares as a test. Arrow keys and enter.

I've nicked a few avatars and stuff a bundled them in the directory, hope no one minds. Saves you finding your own images.

Not done any kind of optimizations yet, bar removing a few pointless variables, so some kind of speed feedback would be nice too.

Zip

Posted on 2004-06-14 04:29:36

el_desconocido

Pretty cool. Seems to work well with most image/shade combos, only a few artifacts in some, overall very effective. The whole shebang took 7.85 seconds on my computer.

El

Posted on 2004-06-14 06:14:18

Buckermann

Around 12 seconds. Seems reasonable, considering my slow system.

Good work.

Posted on 2004-06-14 14:02:40

rpgking

Wow, that was awesome, and fairly fast too.

Posted on 2004-06-14 15:42:56

Zip

Give the new version a go


Glad speed isn't too much of an issue, can never tell on this beast. The previous autoexecs are still in the system.vc, but this new one is pretty nice.
I'm beginning to suspect that I might not be allowed to do what I am currently for the colour swapping, but it does kinda work so I'm loath to change it.

ss_pixel = GetPixel(x, y, ss_image);

if (ss_pixel != COLOUR_MAGENTA) {
RGBtoHSV(GetR(ss_pixel), GetG(ss_pixel), GetB(ss_pixel));
ss_pixel = (ref_h - ss_col_out) % (360 - PLAY);
if (ss_pixel (0 - PLAY)) // If this pixel matches the old colour
// Set the pixel to the new shade
SetPixel(x, y, HSVtoC((360+ss_col_in+ss_pixel)%360, ref_s, ref_v), ss_image); }


Think the % (360 -PLAY) does get if the hue is in range, but doesn't return the right value for modifying with later. Anyway...

Zip

Posted on 2004-06-14 18:16:11 (last edited on 2004-06-14 18:19:45)


Displaying 1-5 of 5 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.