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

crisp rendering #31

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

crisp rendering #31

wants to merge 1 commit into from

Conversation

adaxiik
Copy link
Contributor

@adaxiik adaxiik commented Feb 17, 2024

Demos now look bit more crispy .. font rendering of text that is not pixel aligned looks bit weird, but its only noticeable when it is zoomed in.. maybe we can scale resolution depending on the zoom level?

Source:

https://developer.mozilla.org/en-US/docs/Games/Techniques/Crisp_pixel_art_look

Before:

image

image

After:

image

image

Copy link

@RobLoach RobLoach left a comment

Choose a reason for hiding this comment

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

Crispy. I think pixelated makes sense here, as raylib does target pixel width/height for the screen resolution.

@RobLoach
Copy link

RobLoach commented Feb 27, 2024

While the image-rendering gets somewhat there, this PR goes further into fixing the DPI on the canvas. Ends up looking even crispier: #49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants