renombrades extensions .h a .hpp
This commit is contained in:
+3
-3
@@ -1,5 +1,5 @@
|
||||
#define _USE_MATH_DEFINES
|
||||
#include "color.h"
|
||||
#include "color.hpp"
|
||||
|
||||
#include <cctype> // Para isxdigit
|
||||
#include <cmath> // Para sinf, fmaxf, fminf, M_PI, fmodf, roundf, fmod
|
||||
@@ -8,7 +8,7 @@
|
||||
#include <string> // Para basic_string, stoi, string
|
||||
|
||||
// Método estático para crear Color desde string hexadecimal
|
||||
auto Color::fromHex(const std::string &hex_str) -> Color {
|
||||
auto Color::fromHex(const std::string& hex_str) -> Color {
|
||||
std::string hex = hex_str;
|
||||
|
||||
// Quitar '#' si existe
|
||||
@@ -117,7 +117,7 @@ constexpr auto Color::hsvToRgb(HSV hsv) -> Color {
|
||||
// Implementaciones del namespace Colors
|
||||
namespace Colors {
|
||||
// Obtiene un color del vector de colores imitando al Coche Fantástico
|
||||
auto getColorLikeKnightRider(const std::vector<Color> &colors, int counter) -> Color {
|
||||
auto getColorLikeKnightRider(const std::vector<Color>& colors, int counter) -> Color {
|
||||
int cycle_length = (colors.size() * 2) - 2;
|
||||
size_t n = counter % cycle_length;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user