Draw symbols?

I want to be able to draw the green flag symbol inside my project. But sadly, there isnt anything to draw SymbolMorphs inside the project! So can this be added?

Let me explain how I want it to work. There will be a new extension, dont know what category (the three letters before the underscore), but it will be “draw_symbol(name, [size, color])”. Size and color will be optional (size will default to 1, color white), and then that will use whatever pen settings and act like the stamp block to draw that symbol. And perhaps there could also be a function for getting the costume of a symbol, however you can already do this. And then boom, you can use any symbol. Like this:

untitled script pic(36)

Pretty sure those symbols are all, or mostly all, Unicode characters. So you should be able to do something like this:

What about the correct flag symbol? (the one that the main ui uses, anyways). Or the file symbol, gears symbol, etc.

i’d imagine you could just store it as a costume and then stamp it.

Yeah.. but that way it cant be dynamically changed!

:page_facing_up::gear::gear::cloud::keyboard::magnifying_glass_tilted_right:

I haven’t found the “scripts” one, though.

Eh, yeah, true. But then again, it would be nice to have the Snap! symbols themselves instead of generic character (that then could be any kind of appearence depending on font), and be able to fully change their color without worring about specfics.

Oh, it sounds like a useful block. I’m just claiming you can implement it in Snap!.

They’re not unicode symbols, they’re all symbols that snap draws.

Interesting. But they could be from Unicode. Almost all.

Annoyingly, the Unicode search feature on the Mac prefers 3-D colorful emoji over old fashioned b&w ones, even when the latter still exist in the character set.

I am thinking:

  1. Generate a block where its label only consists of the symbol via metaprogramming
  2. Use the Script Pic Costumes library to capture it
  3. With clever image manipulation, erase the tangible block and isolate the symbol

If you are not worried about JS, @helicoptur has created a block that takes symbols directly and reports them as costumes: