XNA doesn't have any methods which support circle drawing.
Normally when I had to draw circle, always with the same color, I just made image with that circle and then I could display it as a sprite.
But now the color of the circle is specified during runtime, any ideas how to deal with that?
相关问题
- Is it possible to restore a GraphicsDevice if some
- DBGrid - How to set an individual background color
- How do I change the color of the navigation bar ic
- XNA and multitouch
- Work out whether to turn clockwise or anticlockwis
相关文章
- Emacs/xterm color annoyance on Linux
- matplotlib bwr-colormap, always centered on zero
- Difference between SuspendLayout and BeginUpdate
- MeshLab: How to import XYZRGB file
- ChartJS. Change axis line color
- set foreground color in FrameLayout in android pro
- Changing background color for a text annotation to
- Keras: Visualize ImageDataGenerator Output
You can simply make an image of a circle with a
Transparent
background and the coloured part of the circle asWhite
. Then, when it comes to drawing the circles in theDraw()
method, select the tint as what you want it to be:Just for fun, here is the CreateCircle method: