Skip to content

BTerm set() with float data point #338

@wwwzwbz

Description

@wwwzwbz

This might be a dump question, I'm new to Rust lang.
I was trying to use ctx.set(X, Y, fg, bg, glyph) to render a tile on my console, but I realized set() only takes int as its X and Y coordinates, which will make my character moves not smoothly enough. I want it to take float data points as its coordinates, is there a good way to work around this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions