10000 GitHub - akmal3522/ImguiCandy: Color utils, Themes and other cool stuff for Dear ImGui
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

akmal3522/ImguiCandy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

ImguiCandy

Color utils, Themes and other cool stuff for Dear ImGui

Usage

#include "candy.h"

Utils

These functions are to be used inside a loop, hence the use of static/global variables.

ImVec4 Rainbow(double &static_ratio, double step = 0.01);

ImVec4 Gradient2(ImVec4 col1, ImVec4 col2, double &static_ratio, double step = 0.01);

ImVec4 Gradient3(ImVec4 col1, ImVec4 col2, ImVec4 col3, double &static_ratio, double step = 0.01);

Example

  //Rainbow
  static double s0 = 0.0;
  ImGui::PushStyleColor(ImGuiCol_Button, ImCandy::Rainbow(s0));

rainbow

  //Gradient2
  static double s1 = 0.0;
  ImGui::PushStyleColor(ImGuiCol_WindowBg, ImCandy::Gradient2(IV4_VIOLET, IV4_BUBBLEGUM, s1));

gradient

Themes

  • Blender Dark [Improvised]
  ImCandy::Theme_Blender();

blender

  • Cyberpunk Neon [Improvised]
  ImCandy::Theme_Cyberpunk();

cyberpunk

  • Nord/Nordic GTK [Improvised]
  ImCandy::Theme_Nord();

nord

Contribute

Submit your own themes by opening an issue or pull request.

About

Color utils, Themes and other cool stuff for Dear ImGui

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%
0