Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBC] Example of a color palette made within dbc

Author
Message
Brazos
21
Years of Service
User Offline
Joined: 7th Apr 2003
Location:
Posted: 25th Jun 2009 01:56
I wanted to create a color palette with no outside media. I made one and was not pleased with my first results. It had the basic colors but no light or dark colors. I do like the way this one came out. See what ya think.

MonoCoder
18
Years of Service
User Offline
Joined: 4th Dec 2005
Location: england
Posted: 25th Jun 2009 02:29
I get a white box with a black bar in the bottom-right corner...
Also, are all those sleeps necessary? I don't want to have to wait something like a minute just to reach the final image.

Dark Dragon
16
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 25th Jun 2009 03:34 Edited at: 25th Jun 2009 03:40
I get a rainbow.

Is there an image that's supposed to show?

Edit:

I ran again. Nice, all the colors and stuff, but how would you actually use the palette?

Your signature has been erased by a mod because it was too big.CHANGE IT OR DIE!!!!!
Brazos
21
Years of Service
User Offline
Joined: 7th Apr 2003
Location:
Posted: 25th Jun 2009 19:48 Edited at: 25th Jun 2009 20:18
MonoCoder in the attachment you will find the finished image.
The program ran fine here, on two different computers.
Also here is the code without the necessary sleeps.

Attachments

Login to view attachments
Brazos
21
Years of Service
User Offline
Joined: 7th Apr 2003
Location:
Posted: 25th Jun 2009 20:16 Edited at: 25th Jun 2009 20:20
Dark Dragon this color palette can be used in a drawing program. Here is a small example: (You'll need to download the image to go with the program and put it in the same place as your code is saved) (Oh, this is a different color palette than the one from the original program.)

Attachments

Login to view attachments
MonoCoder
18
Years of Service
User Offline
Joined: 4th Dec 2005
Location: england
Posted: 25th Jun 2009 21:03
Disregard me, I didn't notice it's DBC.
The palette is very nice.

Brazos
21
Years of Service
User Offline
Joined: 7th Apr 2003
Location:
Posted: 28th Jun 2009 22:35 Edited at: 28th Jun 2009 22:36
thanks
Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 2nd Jul 2009 15:16
I made a function a while ago for a spectrum, it went something like this. You might be able to modify this to get a faster version of what you have here.

Note: I went over 255 because I seem to remember it goes through yellow and purple but I haven't tested it.

TGC Forum - converting error messages into sarcasm since 2002.
Brazos
21
Years of Service
User Offline
Joined: 7th Apr 2003
Location:
Posted: 3rd Jul 2009 15:50
That is much faster. Thanks OBese87.
Brazos
21
Years of Service
User Offline
Joined: 7th Apr 2003
Location:
Posted: 24th Jul 2009 23:15 Edited at: 24th Jul 2009 23:18
I have overhauled the code. I used fade object and set ambient light commands in the old code. I have replaced those commands with set object ambient command. I understand now that fade object and set ambient light does not work correctly with enhancements. So if you have enhancements use this code if not use the original code.



Login to post a reply

Server time is: 2024-05-05 06:32:08
Your offset time is: 2024-05-05 06:32:08