You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.5 KiB

  1. /* Copyright 2020 Joseph Wasson
  2. *
  3. * This program is free software: you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation, either version 2 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #include "solarized.h"
  17. #define MAKE_COLOR(_H, _S, _V) \
  18. { .h = (((uint32_t)_H) * 255) / 360, .s = (((uint16_t)_S) * 255) / 100, .v = (((uint16_t)_V) * 255) / 100 }
  19. solarized_t solarized = {
  20. .base03 = MAKE_COLOR(193, 100, 21),
  21. .base02 = MAKE_COLOR(192, 90, 26),
  22. .base01 = MAKE_COLOR(194, 25, 46),
  23. .base00 = MAKE_COLOR(195, 23, 51),
  24. .base0 = MAKE_COLOR(186, 13, 59),
  25. .base1 = MAKE_COLOR(180, 9, 63),
  26. .base2 = MAKE_COLOR( 44, 11, 93),
  27. .base3 = MAKE_COLOR( 44, 10, 99),
  28. .yellow = MAKE_COLOR( 45, 100, 71),
  29. .orange = MAKE_COLOR( 18, 89, 80),
  30. .red = MAKE_COLOR( 1, 79, 86),
  31. .magenta = MAKE_COLOR(331, 74, 83),
  32. .violet = MAKE_COLOR(237, 45, 77),
  33. .blue = MAKE_COLOR(205, 82, 82),
  34. .cyan = MAKE_COLOR(175, 74, 63),
  35. .green = MAKE_COLOR( 68, 100, 60),
  36. };