Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Named Colors to docs for pygame.draw and pygame.Surface #2346

Merged
merged 6 commits into from
Jul 28, 2023
Merged

Add Named Colors to docs for pygame.draw and pygame.Surface #2346

merged 6 commits into from
Jul 28, 2023

Conversation

rethanon
Copy link
Contributor

@rethanon rethanon commented Jul 25, 2023

I've updated the docs to reflect the changes suggested in #2273 which asked for the pygame.draw and pygame.Surface pages to more clearly articulate that strings for named colors can be used.

PLEASE NOTE - I'm not experienced with color palettes but I updated set_palette and set_palette_at in line with the rest as I could see in the code that they should also accept a ColorValue. Happy to amend as necessary if I've misunderstood.

Updated draw and surface pages to reference strings (named colors) as being accepted.
@rethanon rethanon requested a review from a team as a code owner July 25, 2023 20:25
@yunline yunline added docs Surface pygame.Surface draw pygame.draw labels Jul 26, 2023
docs/reST/ref/draw.rst Outdated Show resolved Hide resolved
docs/reST/ref/draw.rst Outdated Show resolved Hide resolved
docs/reST/ref/surface.rst Outdated Show resolved Hide resolved
Copy link
Member

@ankith26 ankith26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the PR 🎉

Copy link
Member

@Starbuck5 Starbuck5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Starbuck5 Starbuck5 merged commit 0749a81 into pygame-community:main Jul 28, 2023
31 checks passed
@ankith26 ankith26 modified the milestones: 2.3.2, 2.4.0 Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs draw pygame.draw Surface pygame.Surface
Projects
None yet
4 participants