Skip to content

Instantly share code, notes, and snippets.

View ddovod's full-sized avatar

David Dovodov ddovod

  • Moscow
View GitHub Profile
@ddovod
ddovod / ImPlotCandlestick.cpp
Created November 29, 2022 07:27
Candlestick chart implementation using implot
#include <imgui.h>
#include <implot.h>
#include <implot_internal.h>
namespace
{
static const auto bullCol = ImVec4(0.2f, 0.8f, 0.3f, 0.75f);
static const auto bearCol = ImVec4(0.8f, 0.2f, 0.3f, 0.75f);
}
@ddovod
ddovod / gist.cpp
Last active January 16, 2025 01:15
ImGui::TextAnsiColored
/*
MIT License
Copyright (c) 2024 David Dovodov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is