Siv3D / OpenSiv3D

C++20 framework for creative coding ๐ŸŽฎ๐ŸŽจ๐ŸŽน / Cross-platform support (Windows, macOS, Linux, and the Web)
https://siv3d.github.io/
MIT License
1.02k stars 139 forks source link

Noto Color Emoji Unicode 15.1 (v2.038 โ†’ v2.040) #1144

Closed Reputeless closed 9 months ago

Reputeless commented 11 months ago
Reputeless commented 11 months ago

ใƒ†ใ‚นใƒˆใ‚ณใƒผใƒ‰

# include <Siv3D.hpp> // Siv3D v0.6.13

void Main()
{
    Scene::SetBackground(ColorF{ 0.8, 0.9, 1.0 });

    const Texture emoji1{ U"๐Ÿฆโ€๐Ÿ”ฅ"_emoji };
    const Texture emoji2{ U"๐Ÿ‹โ€๐ŸŸฉ"_emoji };
    const Texture emoji3{ U"๐Ÿ„โ€๐ŸŸซ"_emoji };
    const Texture emoji4{ U"โ›“๏ธโ€๐Ÿ’ฅ"_emoji };
    const Texture emoji5{ U"๐Ÿ™‚โ€โ†”๏ธ"_emoji };
    const Texture emoji6{ U"๐Ÿ™‚โ€โ†•๏ธ"_emoji };

    while (System::Update())
    {
        emoji1.drawAt(100, 100);
        emoji2.drawAt(240, 100);
        emoji3.drawAt(380, 100);
        emoji4.drawAt(100, 240);
        emoji5.drawAt(240, 240);
        emoji6.drawAt(380, 240);
    }
}