I have a question how do I color an arc

8 months ago by
Community: CodeWorld

1 Answer

8 months ago by

Just like anything else, you can wrap it with the colored function:

pic = colored(arc(0, 90, 3), blue)

Because the arc is so thin, the color might not be obvious, you might want to use a thickArc instead.  This is like an arc, but uses a thick line.  The last parameter is thickness.  For example:

pic = colored(thickArc(0, 90, 3, 1/2), blue)
Please login to add an answer/comment or follow this question.

Similar posts:
Search »