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.


Topics - nnard1616

Pages: [1]
1
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