Easy Color Palettes

Share your advanced PureBasic knowledge/code with the community.
User avatar
blueb
Addict
Addict
Posts: 1116
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Easy Color Palettes

Post by blueb »

EasyPalette - for designing forms, or Web pages. It's nice to be able to use a
sequence of colors that look good together... a 'palette' of colors.

With 16 million possible colors to choose, it's hard to choose.

A form might have:
- a background color
- a header color
- a button color
- a container color
- etc. etc.

Since 5 colors covered most of my needs, that is what I used to develop a small Color Palette program.
I placed 50 or so color palettes in an INI file to get you started.

https://www.dropbox.com/s/dudk6h39l8ovw ... e.zip?dl=0 (source code and icons, etc are provided)

There are sites on the Internet that supply this info, but it's nice to 'scrape' these sites and
put them into your own color database for use at a later date.

A site that I used to gather color palettes from was:

http://www.colourlovers.com/

I found that http://www.colourlovers.com/palettes have people placing their favorite 5 color combos together into a palette.
They call this a 'Tetrad' (4-colors and a base)

If you click on a palette you like... it opens up and you can view it in a larger format, then 'grab' the HTML color code from the box on the right side of the web page.

I then insert this color information into my program for later use.
e.g.
Name: Fading Scent
Color: #FA7295,#FADB72,#FAF1D3,#E5D4B7,#E5C6B7,#FA7295,#FADB72,#FAF1D3
(notice it contains 8 colors, but last 3 are repeats, so only first 5 are used)

There are other sites, but this is the most popular as you can see by the amount of contributors.

House Paint company sites are also good for choosing palettes, but you may have to convert color to HTML HEX strings (as above)

Other interesting color sites:
- http://paletton.com/#uid=7000u0kllllaFw0g0qFqFg0w0aF
- http://www.colorsontheweb.com/Color-Too ... ld-Version
- http://www.colorhunter.com/
- http://www.spycolor.com

have fun...
blueb
- It was too lonely at the top.

System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
Mohawk70
Enthusiast
Enthusiast
Posts: 404
Joined: Thu May 11, 2006 1:04 am
Location: Florida, USA

Re: Easy Color Palettes

Post by Mohawk70 »

blueb wrote: Since 5 colors covered most of my needs, that is what I used to develop a small Color Palette program.
I placed 50 or so color palettes in an INI file to get you started.

There are sites on the Internet that supply this info, but it's nice to 'scrape' these sites and
put them into your own color database for use at a later date.

A site that I used to gather color palettes from was:

http://www.colourlovers.com/

...

If you click on a palette you like... it opens up and you can view it in a larger format, then 'grab' the HTML color code from the box on the right side of the web page.

I then insert this color information into my program for later use.
e.g.
Name: Fading Scent
Color: #FA7295,#FADB72,#FAF1D3,#E5D4B7,#E5C6B7,#FA7295,#FADB72,#FAF1D3
(notice it contains 8 colors, but last 3 are repeats, so only first 5 are used)

There are other sites, but this is the most popular as you can see by the amount of contributors.

blueb
I hope that you give credit to the ColourLovers.com users whose palettes you used !
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
User avatar
blueb
Addict
Addict
Posts: 1116
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Re: Easy Color Palettes

Post by blueb »

I hope that you give credit to the ColourLovers.com users whose palettes you used !
I thought I was... I gave 2 links to the site.

The colors I provided were only a 'sample'... the colors you use can be from anywhere.

You have 16 million possibilities, and again... the source code if you don't like it.
- It was too lonely at the top.

System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
Mohawk70
Enthusiast
Enthusiast
Posts: 404
Joined: Thu May 11, 2006 1:04 am
Location: Florida, USA

Re: Easy Color Palettes

Post by Mohawk70 »

blueb wrote:
I hope that you give credit to the ColourLovers.com users whose palettes you used !
I thought I was... I gave 2 links to the site.

The colors I provided were only a 'sample'... the colors you use can be from anywhere.

You have 16 million possibilities, and again... the source code if you don't like it.
I saw the links, I was referring to the person contributing the individual palettes, just as it would be courteous to give you credit if someone were to use your code that you made available here. It was just an observation, not meant as anything personal :)
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