casey / casey/pxl

Consider changing all coordinates to (f32, f32)

Open
#94 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
32
Forks
2
PR merge metrics
No merged PRs in 30d

Description

It is often desirable to track motion as sub-pixel values. Additionally, cursor events will be (f32, f32) and may be negative, if the cursor is out of the window.

Additionally, we could change the render function to take a PixelBuffer, and support a `pixel_at(f32, f32)` function that returns an Option, which would be useful for rendering objects that may be partially off screen.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.