Fandango68
Fandango68

Reputation: 4888

What is the Unicode code for a grey ball?

I am new to unicodes in general. It seems there are set unicode values for colored objects such as round balls.

enter image description here

https://www.gaijin.at/en/infos/unicode-character-table-geometry

Surely, there are codes for other colors?

I am after one for a grey-ball please, or a way to make one?

I am using direct javascript and I was hoping for a code so I don't have to use css as I am injecting this grey-ball into an existing web system that I did not build. Thanks

Upvotes: 1

Views: 6102

Answers (2)

Mark Tolonen
Mark Tolonen

Reputation: 177901

Other relevant Unicode codepoints containing LARGE and CIRCLE:

(9711, '◯', 'LARGE CIRCLE')
(11044, '⬤', 'BLACK LARGE CIRCLE')
(11093, '⭕', 'HEAVY LARGE CIRCLE')
(128308, '🔴', 'LARGE RED CIRCLE')
(128309, '🔵', 'LARGE BLUE CIRCLE')

No Unicode codepoint contains GREY or GRAY as of Unicode 13.0.0.

Also note that rendering is up to the font/browser. BLACK LARGE CIRCLE is a text emoji so is not actually black but "solid" and is the color of the font. On my system HEAVY LARGE CIRCLE happens to be a red unfilled circle.

Upvotes: 1

loops
loops

Reputation: 5635

You're probably looking for either ⚪ or ⚫, which are "medium white/black" circles. The exact display depends on the font being used. You might also be interested in ⬤, which takes on the color of the text color.

Comparison:

Character Name
MEDIUM WHITE CIRCLE
MEDIUM BLACK CIRCLE
BLACK LARGE CIRCLE (takes on the color of the text)

Upvotes: 3

Related Questions