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

Drawing API? #34

Closed
jonsmirl opened this issue Mar 10, 2024 · 2 comments
Closed

Drawing API? #34

jonsmirl opened this issue Mar 10, 2024 · 2 comments

Comments

@jonsmirl
Copy link

Introduce the problem

I don't see any way to construct an image, either draw_ctx or canvas. I need to construct RGB and HSL spectrum gradient bitmaps. I can make them in C and pass back to Lua, but do you have plans for a drawing API?

Proposal

No response

@jonsmirl
Copy link
Author

I wrote some test code in C, this isn't working out very well on my small LCD so I may drop generating bitmaps.

@XuNeo
Copy link
Owner

XuNeo commented Mar 11, 2024

I image it could be achieved by generating data from lua and use those data as source of image widget. The image header needs to be added though. I have never tested this way.

Another method would be develop a custom widget that do the magic work from C. The example widget locates in simulator/widgets.

@XuNeo XuNeo closed this as not planned Won't fix, can't repro, duplicate, stale Aug 4, 2024
This issue was closed.
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

2 participants