Emojis in source code!

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SpiceWare

Thanks!  I dropped the defs in, did find/replace for my test graphics, worked just fine.

That is strange - I just tested all the squares (smaller sizes too) and hearts and none of the black or white squares worked, nor did the red heart. All of the other colors of squares and hearts worked OK.

Additionally the black square with white outline, and the white square with black outline also worked, but as seen in the attachment the graphics don't show up as well as with the solid colored squares.

SpiceWare

@johnnywc23 - can define binary patterns using emoji blocks:
#define 🟦🟦🟦🟦🟦🟦🟦🟦 0b00000000
#define 🟦🟦🟦🟦🟦🟦🟦🟨 0b00000001
#define 🟦🟦🟦🟦🟦🟦🟨🟦 0b00000010
#define 🟦🟦🟦🟦🟦🟦🟨🟨 0b00000011
...
#define 🟨🟨🟨🟨🟨🟨🟦🟦 0b11111100
#define 🟨🟨🟨🟨🟨🟨🟦🟨 0b11111101
#define 🟨🟨🟨🟨🟨🟨🟨🟦 0b11111110
#define 🟨🟨🟨🟨🟨🟨🟨🟨 0b11111111

which makes graphics in the source code extremely easy to see.  Andrew and I are both on Macs, but if it also works on Windows you might find it useful.