Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › C++/C Programming › D3D & c++ || Simple Color Slider

D3D & c++ || Simple Color Slider

Posts 1–6 of 6 · Page 1 of 1
FlaVour
FlaVour
D3D & c++ || Simple Color Slider
Hey MPGH,
maybe this will help some coder:


Code:
DWORD color[3], cur;


	pMenu->DrawBorderedBox( 300, 100, 300, 120 , pMenu->col.background, pMenu->col.border, pDevice );
	pMenu->DrawTextR( 310, 110, D3DCOLOR_ARGB(255, 220, 220, 220), "Color Slider 0.5" );
	pMenu->DrawTextR( 307, 135, D3DCOLOR_ARGB(255, 255, 0, 0), "R:" );
	pMenu->DrawTextR( 307, 150, D3DCOLOR_ARGB(255, 0, 255, 0), "G:" );
	pMenu->DrawTextR( 307, 165, D3DCOLOR_ARGB(255, 0, 0, 255), "B:" );
	pMenu->DrawBorderedBox( 325, 135+3, 255, 8, D3DCOLOR_ARGB(255, 255, 0, 0) /*Background*/, D3DCOLOR_ARGB(255, 200, 200, 200) /*Border*/, pDevice );
	pMenu->DrawBox( 325+color[0], 135+1, 2, 11, D3DCOLOR_ARGB(255,255,255,255), pDevice );
	pMenu->DrawBorderedBox( 325, 150+3, 255, 8, D3DCOLOR_ARGB(255, 0, 255, 0) /*Background*/, D3DCOLOR_ARGB(255, 200, 200, 200) /*Border*/, pDevice );
	pMenu->DrawBox( 325+color[1], 150+1, 2, 11, D3DCOLOR_ARGB(255,255,255,255), pDevice );
	pMenu->DrawBorderedBox( 325, 165+3, 255, 8, D3DCOLOR_ARGB(255, 0, 0, 255) /*Background*/, D3DCOLOR_ARGB(255, 200, 200, 200) /*Border*/, pDevice );
	pMenu->DrawBox( 325+color[2], 165+1, 2, 11, D3DCOLOR_ARGB(255,255,255,255), pDevice );
	pMenu->DrawTextR( 317, 184, D3DCOLOR_ARGB(255, 255, 255, 255), "Color:" );
	pMenu->DrawBorderedBox( 370, 184+3, 70, 8, D3DCOLOR_ARGB(255, color[0], color[1], color[2]), D3DCOLOR_ARGB(255, 200, 200, 200), pDevice );
	pMenu->DrawTextR( 310, 200, D3DCOLOR_ARGB(255, 220, 220, 220), "Use +/- to change value, 1/2/3 to choose color" );

	if(GetAsyncKeyState(VK_ADD) && color[cur] < 255)
		color[cur]++;
	if(GetAsyncKeyState(VK_SUBTRACT) && color[cur] > 0)
		color[cur]--;

	int key[3] = { 0x31, 0x32, 0x33 };
	for( int i = 0; i < 3; i++ )
	{
		if(GetAsyncKeyState(key[i])&1)
			cur = i;
	}
Code:
CREDITZ:
Yazzn
Code:
Comment by yazzn:
Thanks to Neo III, his color slider was a big inspiration for me. 

PS: color[0] = r; color[1] = g; color[2] = b;
#1 · 15y ago
WH
whit
Looks good but i already seen this on UC
#2 · 15y ago
FlaVour
FlaVour
Quote Originally Posted by whit View Post
Looks good but i already seen this on UC
you got right...i copied from there(with creditz ) because i thought maybe a coder can work with it..
#3 · 15y ago
EminemJr
EminemJr
Looks nice and thanks for the code
#4 · 15y ago
wtfhaksftw
wtfhaksftw
Lol im pretty sure almost all good coders go to uc :P
#5 · 15y ago
Pxpc2
Pxpc2
Thats pretty complicated.
Looks even more than c++;
Even thought not.

And, thanks so much for this, maybe help alot of persons learning D3D.
#6 · 15y ago
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Tags for this Thread

None