Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - nnard1616

Pages: [1]
1
Feature requests / Re: More predefined sf::Colors
« on: March 11, 2019, 06:46:14 pm »
Ah, I didn't think about backwards compatibility.  Thank you for pointing that out and your other suggestions.

Looking at the original predefines, I've realized they're the basic RGB/CMYK+white&transparent. Considering this and the ideology of SFML, it seems to me that additional color predefines is unnecessary and antithetical.

But, it would be nice to have HTML colors ready at one's fingertips, so I've implemented your HtmlColors suggestion.  My refactored text can be found here.  Just stick it somewhere in your project or include it in your personal SFML build if you wish.


2
Feature requests / More predefined sf::Colors
« on: March 09, 2019, 09:31:50 am »
HTML has something like 140 standard color names, I'd think it would be cool to have them all as predefined sf::Colors.

Perhaps SFML doesn't need that many predefines, but it would be nice to have more common colors like Orange and Brown included. 


On my personal build of SFML I've already included all of the HTML color names.  If anybody is interested in including these in their own SFML builds, you can copy this text for the Color.hpp, and this for the Color.cpp.  Keep in mind that HTML's color names don't 100% correspond with SFML predefines.  EG, sf::Color::Green is called Lime in HTML.   So if you use my HTML based predefines you'll be overwriting SFML's predefines.

Pages: [1]
anything