+ 2

Diverse emojis in C++?

My C++ code below uses emojis. I wanted to make them diverse and have been trying to modify skin colour through the Unicode code. With no success although I have been scanning past discussion, codes and googling. Is there a way to colour smiley? How can I use the modified unicodes from the tables in C++? https://code.sololearn.com/cVvCzn7yFxjG/?ref=app

1st May 2019, 1:25 PM
bell
bell - avatar
5 Antworten
+ 3
You can change skin tones using the unicode fitzpatrick scale skin tone modifiers. For example, if "\U0001F44B" is a waving hand 👋, then "\U0001F44B\U0001F3FB" is a waving hand with type 1-2 skin 👋🏻. Not every emoji supports skin tone modifiers, you can find a full list at https://unicode.org/emoji/charts/full-emoji-modifiers.html It looks like that particular smiley of yours is not on the list.
1st May 2019, 2:00 PM
Schindlabua
Schindlabua - avatar
+ 3
Passiert hier gelegentlich, ich glaube das ist wenn der Hamster müde wird und die im Hamsterrad ein paar neue einspannen müssen damit der Server wieder Strom bekommt :P
1st May 2019, 3:43 PM
Schindlabua
Schindlabua - avatar
+ 2
thank you, Schindlabua! I was trying to do this with + rather than with \ characters, as the unicode.org tables seem to imply, and kept getting errors. (btw, your waving hand lacks a B, I was getting a crash from this also)
1st May 2019, 3:08 PM
bell
bell - avatar
+ 2
Whoops, and the link was wrong aswell. :D Different languages have different ways of writing down these hexcodes. "0x1F44B" is common too. It's just one of those things.
1st May 2019, 3:15 PM
Schindlabua
Schindlabua - avatar
+ 2
Drei mal geschnitten und immer noch zu kurz! (wie meine Ur-Oma zu sagen pflegte). Now it is working but any attempt to save changes to the code is failing! 😂 Thanks anyway!
1st May 2019, 3:40 PM
bell
bell - avatar