PrevUpHomeNext

color 123456


0x123456 is a nice sky blue color found by me accidently, in my c++ project. It is very lazy to type and be remembered: just type 123456.

See:

method: shared_device.scene()

video_driver->swapScenes(...)

c++ example

#include <duckcpp/shared.hpp>

int main()
{
	dcpp::shared_device device{2560, 1440};
	while (device.run())
	{
		if (! device.window_active())
		{
			device.yield();
			continue;
		}
		device.scene()->drawAll();
		device.video()->swapScenes(0xff123456);
	}
}

Date

> date
Mon Apr  7 07:46:53 AM UTC 2025

Back

Up: Tips

c++

Duckcpp

cppfx.xyz


PrevUpHomeNext