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 support for embedded bitmap graphs #193

Open
tiby312 opened this issue Oct 18, 2022 · 3 comments
Open

Add support for embedded bitmap graphs #193

tiby312 opened this issue Oct 18, 2022 · 3 comments

Comments

@tiby312
Copy link
Owner

tiby312 commented Oct 18, 2022

No description provided.

@tiby312
Copy link
Owner Author

tiby312 commented Oct 18, 2022

I think the api should be the user gets to pick a resolution, and then they can literally add individual pixels. This plot would then be scaled to fit into the plotting area and could be overlayed on top of other svg plots.

let data=[0u8;64*64];
let bitmap=poloto::plot("foo").bitmap().with_resolution([64,64]).buffered(data).

@tiby312
Copy link
Owner Author

tiby312 commented Oct 20, 2022

unlike other iterators, this one should probably allowing passing of x,y and color. not just x and y.

@tiby312
Copy link
Owner Author

tiby312 commented Oct 20, 2022

on second thought the above api doesnt allow the user to be able render specific pixels. maybe this:

let bitmap=poloto::plot("foo").bitmap().map(|pixel|map_pixel_to_actual_value(pixel)).buffered(pixel_data)

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

No branches or pull requests

1 participant