Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6777297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:07:51+00:00 2026-05-26T16:07:51+00:00

This question is related to this other one . In my program (which uses

  • 0

This question is related to this other one.

In my program (which uses pygame to draw objects on the video) I have two representation of my world:

  • A physical one that I use to make all the calculations involved in the simulation and in which objects are located on a 1000×1000 metres surface.
  • A visual one which I use to draw on the screen, in which my objects are located in a window measuring 100×100 pixels.

What I want to achieve is to be able to pass to my pygame drawing functions (which normally accept inputs in pixels) my physical/real-word coordinates. In other words, I would like to be able to say:

Draw a 20m radius circle at coordinates (200m, 500m)

using the precise pygame syntax:

pygame.draw.circle(surface, (255,255,255), (200,500), 20)

and get my circle of 2px radius at centred on pixels (20,50).

Please note that this question is about a native pygame way to do this, not some sort of workaround to achieve that result (if you want to answer that, you should take a look to the question I already mentioned) instead.

Thanks in advance for your time and support.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:07:52+00:00Added an answer on May 26, 2026 at 4:07 pm

    Since it seems that PyGame developers do not hang around here too much, I brought the question to the Pygame mailing list where it originated a monster thread and the issue has been debated at large.

    The summary would be:

    • At present there is not such a feature.
    • There is interest to implement it, or at least to try to implement it…
    • …although is not a priority of the core devs in any way
    • There is more than one way to skin a cat:
      • should be the scaling happen both ways (inputting coordinates and reading them)?
      • how to deal with lines that have no thickness but that should be visible?
      • how to deal with visibility of objects at the edge of the image? which of their points should be taken as reference to know if a pixel should be lit or not for them?
      • and more (see linked thread).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question is related to this one . I have two Android projects inside
This question is related to this other question I recently asked... cf.net exception and
This question is related to my other question How to redirect to Login page
This is a followup question to my other widget-related question . I'd like to
I've looked at other questions on Stack Overflow related to this question, but none
This is related to my other question , but I felt like I should
This is related to my other question: Managing Foreign Keys I am trying to
This is related to a question I asked the other day on how to
This relates to my other question on accessing a REST service that uses forms
This question is related to a number of other questions on oAuth on the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.