按数字颜色Android

发布于 2025-02-07 08:31:36 字数 293 浏览 2 评论 0原文

我正在尝试按数字实现着色。我需要能够用一键填充路径填充颜色。同时,重要的是要预先确定颜色。实际上,用户将只需要在面板上选择所需的数字,然后在屏幕上单击它。我不明白该怎么做。

我查看了定期着色的各种选择,您可以选择颜色并填充区域。 Floodfill之类的东西。它不适合我。

我正在附上示例图像。

在此处输入图像描述

I am trying to implement coloring by numbers. I need to be able to fill it with color with one click on the path. At the same time, it is important that the colors will be predetermined. In fact, the user will just need to select the desired number on the panel and click on it on the screen. I don't understand how to do it.

I looked at various options for regular coloring, where you can choose a color and fill the area. Something like floodFill and the like. It doesn't suit me.

I am attaching an example image.

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文