# Make a text with a transparent background in Graphics [closed]

Code first

Graphics[{Thick,
Yellow, Disk[{0, 1}],
Text[Style["abcdeffsgg", 16, Black,
Background -> Transparent], {0.85, 0.65}]
}]


Using Background->Transparent, I expect that the background color of the text is transparent so I thought it should be yellow inside the circle and nothing outside the circle. However, Mathematica does not generate the output in that way.

How do I make the text's background inherently transparent?

-

## closed as off-topic by Mr.Wizard♦Jul 31 at 1:54

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question cannot be answered without additional information. Questions on problems in code must describe the specific problem and include valid code to reproduce it. Any data used for programming examples should be embedded in the question or code to generate the (fake) data must be included." – Mr.Wizard
If this question can be reworded to fit the rules in the help center, please edit the question.

Can you upload a picture of what you get on your machine? –  Öskå Jul 30 at 14:18
I cannot reproduce this problem. What version of Mathematica and which operating system are you using? –  Mr.Wizard Jul 30 at 14:57
@Öskå I checked the code in my laptop running on Windows 8, the output looks as expected. Maybe the computer in my office is the problem. The OS is Ubuntu 12 and the version of Mathematica is 9. –  Sungmin Jul 30 at 16:06
@Mr.Wizard Please check the comment to Öskå –  Sungmin Jul 30 at 16:07

Your example prints the text with "as it is" with no background. Compare with

Graphics[{Thick, Yellow, Disk[{0, 1}],
Text[Style["abcdeffsgg", 16, Black, Background -> Red], {0.85,  0.65}]}]


To let the text disappear you can use

Graphics[{Thick, Yellow, Disk[{0, 1}],
Text[Style["abcdeffsgg", 16, Black, Transparent], {0.85, 0.65}]}]


Instead of Transparent you can also use

GrayLevel[0, 0] or Opacity @ 0.

-
Thank you for the answer. I checked the same code in my laptop and the code works as expected. Maybe the computer in my office would be the problem. –  Sungmin Jul 30 at 16:08