Wikipedia's (1000+) color constant list

Share your advanced PureBasic knowledge/code with the community.
User avatar
minimy
Enthusiast
Enthusiast
Posts: 630
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: Wikipedia's (1000+) color constant list

Post by minimy »

Wow!.. A lot of colors.. who need a brush?.. :lol:
Great job friend! Thanks for share?
If translation=Error: reply="Sorry, Im Spanish": Endif
es_91
Enthusiast
Enthusiast
Posts: 298
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

Wikipedia's (1000+) colors explorer and comparer

Post by es_91 »

Some changes were made. Just wanted to draw your attention to this. It's like... to quote a to some people well-known paint artist:

"Shoot! Let's get crazy!"

Image

R.I.P.

Let me dedicate this program to Bob Ross as well as to the millions of people who contribute more than a letter to Wikipedia.

http://web44.srv2.domainbase24.com/Stru ... omparer.pb

Yeah, i know I'm pretty exploiting this topic but then again, to the displeasement of some people, I still want to share this advancement with you. :|
:mrgreen:
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: Wikipedia's (1000+) color constant list

Post by Vera »

Thanks so much es_91 for your sharings :D

I haven't tested the desktop-funs yet as it's for WIN and I dare not risk my settings ... but with the new installation coming soon, I'll give it a go.

... especially to tune in with your dedication to Bob Ross, who also fascinated me some years ago :-)

cheers ~ Vera
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: Wikipedia's (1000+) color constant list

Post by netmaestro »

Very useful, thanks for sharing!

btw, what I'm doing with it is I changed all '#' to '#WCOLOR_' so #AcidGreen becomes #WCOLOR_AcidGreen etc. and compiled the file to a resident. Now I don't have to mess with includes and I can type #WC in the ide and Autocomplete will show me a list of all the wiki colors so I can browse them and pick one. I usually can't remember exact names so this is very efficient. Thanks again :mrgreen:
BERESHEIT
es_91
Enthusiast
Enthusiast
Posts: 298
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

Re: Wikipedia's (1000+) color constant list

Post by es_91 »

netmaestro wrote:btw, what I'm doing with it is I changed all '#' to '#WCOLOR_' so #AcidGreen becomes #WCOLOR_AcidGreen etc. and compiled the file to a resident.
Oh, be careful! The names have not been checked by me individually and feedback from the forums has me only correcting a very few names ... perhaps there is more confusing stuff in the list...

/edit: Btw I'm curious, what do you have to do to create a resident file? Is it easy? This might not be the right place to talk about a how to, but maby you could provide a little link or something. If it is harder, maybe you could do me and some others a favour by sharing this resident file?

/edit: And another thing. Some colors in the list are missing: the once so important MS-DOS colors...

here is a list, containing the constants:

Code: Select all

#DOS_Black = $000000; RGB (0, 0, 0)
#DOS_Blue = $800000; RGB (0, 0, 128)
#DOS_Green = $008000; RGB (0, 128, 0)
#DOS_Aqua = $808000; RGB (0, 128, 128)
#DOS_Red = $000080; RGB (128, 0, 0)
#DOS_Purple = $800080; RGB (128, 0, 128)
#DOS_Yellow = $008080; RGB (128, 128, 0)
#DOS_White = $C0C0C0; RGB (192, 192, 192)
#DOS_Grey = $808080; RGB (128, 128, 128)
#DOS_LightBlue = $FF0000; RGB (0, 0, 255)
#DOS_LightGreen = $00FF00; RGB (0, 255, 0)
#DOS_LightAqua = $FFFF00; RGB (0, 255, 255)
#DOS_LightRed = $0000FF; RGB (255, 0, 0)
#DOS_LightPurple = $FF00FF; RGB (255, 0, 255)
#DOS_LightYellow = $00FFFF; RGB (255, 255, 0)
#DOS_BrightWhite = $FFFFFF; RGB (255, 255, 255)
:mrgreen:
vmars316
Enthusiast
Enthusiast
Posts: 474
Joined: Fri Jun 29, 2012 12:24 am
Contact:

Re: Wikipedia's (1000+) color constant list

Post by vmars316 »

Wow!
Quite the list...Thanks..Vern
vmars.us Win11 x64 , Martin Guitar 000-16 (1995)
"All things in moderation , except for love and forgiveness."
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: Wikipedia's (1000+) color constant list

Post by heartbone »

I realize that I may be suggesting the impossible,
but it would be extremely useful if whenever the mouse pointer was outside the application's window
that the color value of the pixel under the pointer be displayed and mapped to a display of the nearest list color or three.
Clicking the mouse button (hold if necessary so as not to do anything unnecessary elsewhere)
would keep the last detected color(s) visible in the app's window.
Then perhaps with the addition of another setting,
the area under the pointer could be expanded to a small circle and the average of colors within the circle be automatically selected from the list and displayed.
Drawing a magnified representation of the region around the mouse pointer within that unused app window area would be much appreciated as well.
Keep it BASIC.
vmars316
Enthusiast
Enthusiast
Posts: 474
Joined: Fri Jun 29, 2012 12:24 am
Contact:

Re: Wikipedia's (1000+) color constant list

Post by vmars316 »

Vera wrote:Thanks too :-)

I never knew my favorit color had a name ~ TangerineYellow
Here are some interesting tangerines:
http://www.colourlovers.com/colors/sear ... =tangerine

this is pretty cool also:
http://www.colourlovers.com/pattern/464 ... _Of_Pearls

Gazillions of colors, color schemes and patterns at this site.
..:)
vmars.us Win11 x64 , Martin Guitar 000-16 (1995)
"All things in moderation , except for love and forgiveness."
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: Wikipedia's (1000+) color constant list

Post by Vera »

Hi Vern,

what a great tip ~ Image ~ thank you Image
vmars316
Enthusiast
Enthusiast
Posts: 474
Joined: Fri Jun 29, 2012 12:24 am
Contact:

Re: Wikipedia's (1000+) color constant list

Post by vmars316 »

Vera wrote:Hi Vern,

what a great tip ~ Image ~ thank you Image
And here is another quite interesting color-fest , sort colors by proximity:
http://www.uize.com/examples/color-sort ... imity.html
..vm
vmars.us Win11 x64 , Martin Guitar 000-16 (1995)
"All things in moderation , except for love and forgiveness."
Mohawk70
Enthusiast
Enthusiast
Posts: 404
Joined: Thu May 11, 2006 1:04 am
Location: Florida, USA

Re: Wikipedia's (1000+) color constant list

Post by Mohawk70 »

this is pretty cool also:
http://www.colourlovers.com/pattern/464 ... _Of_Pearls

Gazillions of colors, color schemes and patterns at this site.
..:)
I've been using that one for a long time now !
HP Z800 Workstation
CPU : Dual Xeon 5690 3.46GHz
RAM : 96GB RAM ( 8GB x 12 )
PSU : 1100W
GPU : NVIDIA RTX 3050 8GB
STORAGE : 9TB
(4) 2TB Seagate IronWolf Pro HDD
(1) 1TB Samsung 870 EVO SSD
Post Reply