Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • Python Tutorial
  • Interview Questions
  • Python Quiz
  • Python Glossary
  • Python Projects
  • Practice Python
  • Data Science With Python
  • Python Web Dev
  • DSA with Python
  • Python OOPs
Open In App
Next Article:
Draw a parabola using Arcade in Python3
Next article icon

Draw a circle using Arcade in Python3

Last Updated : 22 Jul, 2021
Comments
Improve
Suggest changes
Like Article
Like
Report

The arcade library is a high-tech Python Package with advanced set of tools for making 2D games with gripping graphics and sound. It is Object-oriented and is especially built for Python 3.6 and above versions.

Arcade inbuilt functions to draw circle :-

1. arcade.draw_circle_outline( ) : This function is used to draw the outline of a circle.   

Syntax: arcade.draw_circle_outline(center_x, center_y, radius, color, border_width, num_segments)

Parameters:

  • center_x  – x position that is the center of the circle.
  • center_y  – y position that is the center of the circle.
  • radius  – width of the circle.
  • color – color which with outline will be drawn.
  • border_width – Width of the circle outline in pixels.
  • num_segments - Higher is the number of segments, higher is the quality, but slower render time. The default value is -1 which means arcade will try to calculate a reasonable amount of segments based on the size of the circle.

Let's take an example-

Python3
#import module import arcade  # Open the window. Set the window title and # dimensions (width and height) arcade.open_window(600, 600, "Draw  an arc  for GfG ")  #set background arcade.set_background_color(arcade.color.WHITE)  # Start the render process. arcade.start_render()  #function to draw a circle arcade.draw_circle_outline(300, 285, 88, arcade.color.GREEN, 9,-1)  #finish drawing arcade.finish_render()  #to display everything arcade.run() 

 
 

Output:


 


 

Since, now you know how to draw a simple outline of a circle. Let's draw the Olympic flag using this arcade.draw_circle_outline( ).


 

Python3
#import module import arcade  # Open the window. Set the window title and # dimensions (width and height) arcade.open_window(600, 600, "Draw  an arc  for GfG ")  # set background color arcade.set_background_color(arcade.color.WHITE)  # Start the render process. arcade.start_render()  # function for designing olympic flag arcade.draw_circle_outline(100, 285, 88, arcade.color.BLUE, 9, -1) arcade.draw_circle_outline(300, 285, 88, arcade.color.BLACK, 9, -1) arcade.draw_circle_outline(500, 285, 88, arcade.color.RED, 9, -1) arcade.draw_circle_outline(200, 185, 88, arcade.color.YELLOW, 9, -1) arcade.draw_circle_outline(400, 185, 88, arcade.color.GREEN, 9, -1)  # finished drawing arcade.finish_render()  # to display everything arcade.run() 

Output:

2. arcade.draw_circle_filled( ) : This function is used to draw color filled circle . 

Syntax: arcade.draw_circle_outline(center_x, center_y, radius, color, num_segments)

Parameters:

  • center_x  – x position that is the center of the circle.
  • center_y  – y position that is the center of the circle.
  • radius  – width of the circle.
  • color – color which with outline will be drawn.
  • num_segments - Higher is the number of segments, higher is the quality, but slower render time. The default value is -1 which means arcade will try to calculate a reasonable amount of segments based on the size of the circle.

Let's take an example-

Python3
#import module import arcade  # Open the window. Set the window title and dimensions (width and height) arcade.open_window(600, 600, "Draw  a circle  for GfG ")  # set background arcade.set_background_color(arcade.color.WHITE)  # Start the render process. arcade.start_render()  # draw circle arcade.draw_circle_filled(300, 450, 78, arcade.color.PINK, 0)   # finish drawing arcade.finish_render()  # to display everything arcade.run() 

Output:

Since, now you know how to draw a simple outline of a circle. Let's draw a snowman using this arcade.draw_circle_filled( ).

Python3
#import module import arcade  # Open the window. Set the window title and  # dimensions (width and height) arcade.open_window(600, 600, "Draw  a circle  for GfG ")  # set background arcade.set_background_color(arcade.color.WHITE)  # Start the render process. arcade.start_render()  # snowman upper part arcade.draw_circle_filled(300, 450, 68, arcade.color.SKY_BLUE, 0)  # snowman eyes arcade.draw_circle_filled(289, 475, 8, arcade.color.BLACK, 0) arcade.draw_circle_filled(329, 475, 8, arcade.color.BLACK, 0)  # snowman lower part arcade.draw_circle_filled(300, 350, 88, arcade.color.BLUE, 0) arcade.draw_circle_filled(300, 250, 108, arcade.color.SKY_BLUE, 0)  # finish drawing arcade.finish_render()  # to display everything arcade.run() 

Output:


Next Article
Draw a parabola using Arcade in Python3

A

anshitaagarwal
Improve
Article Tags :
  • Python
  • Python-Arcade
Practice Tags :
  • python

Similar Reads

  • Draw an arc using Arcade in Python
    The arcade library is a high-tech Python Package with an advanced set of tools for making 2D games with gripping graphics and sound. It is Object-oriented and is specially built for Python 3.6 and above versions. Arcade has two inbuilt functions for drawing arc: 1: arcade.draw_arc_outline ( ): This
    2 min read
  • Draw a parabola using Arcade in Python3
    Arcade is a Python library which is used for developing 2Dimensional Games. Arcade needs support for OpenGL 3.3+. In arcade, basic drawing does not require knowledge on how to define functions or classes or how to do loops, simply we have inbuilt functions for drawing primitives. Arcade inbuilt func
    3 min read
  • Draw a triangle using Arcade in Python
    Arcade is a Python library that is used for developing 2Dimensional Games. Arcade needs support for OpenGL 3.3+. In the arcade, basic drawing does not require knowledge on how to define functions or classes or how to do loops, simply we have inbuilt functions for drawing primitives. Arcade inbuilt f
    2 min read
  • Draw Circle in Python using Turtle
    Turtle graphics is an engaging way to learn Python programming by visualizing geometric shapes. The turtle module lets you control a turtle to draw lines and shapes on the screen, making it an ideal tool for beginners. Below, we'll explore how to draw circles and create more complex patterns like ta
    2 min read
  • Draw a sun using arcade library Python
    You might have drawn Sun using famous Python module like turtle but here we discuss how the same approach can be achieved using arcade module. The Arcade library is a modern Python Module used widely for developing 2D video games with compelling graphics and sound. Arcade is an object-oriented libra
    2 min read
  • Draw a tree using arcade library in Python
    Drawing a tree isn't a tough task in Python using the turtle module. But, what if you can draw it using Arcade Module as well. Arcade is an object-oriented library. It can be installed like any other Python Package using an import arcade. Approach: Import arcade.Define a function to draw trees. Here
    3 min read
  • Draw a happy face using Arcade Library in Python
    Arcade is a Python module used for developing 2D games. For drawing a happy face, steps are as follows: Import arcade library.import arcade Open the window.arcade.open_window(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_TITLE) The function used with arcade is open_window. This command opens a window with a g
    2 min read
  • Draw Chess Board Using Turtle in Python
    Prerequisite: Turtle Programming Basics Turtle is an inbuilt module in Python. It provides drawing using a screen (cardboard) and turtle (pen). To draw something on the screen, we need to move the turtle (pen). To move turtle, there are some functions i.e forward(), backward(), etc. For drawing Ches
    2 min read
  • Draw an ellipse using Arcade library in Python
    Prerequisite: Arcade Library  The Arcade library is a modern Python Module used for developing 2D video games with enthralling graphics and sound. It is an object-oriented library. It can be installed like any other Python Package in your IDE. Arcade Module has two inbuilt functions for drawing an e
    3 min read
  • How to Draw a Circle Using Matplotlib in Python?
    A Circle is a mathematical figure formed by joining all points lying on the same plane and are at equal distance from a given point. We can plot a circle in python using Matplotlib. There are multiple ways to plot a Circle in python using Matplotlib.  Method 1: Using matplotlib.patches.Circle() func
    3 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences