如何用 C# 代码生成 NES 调色板

发布于 12-02 17:20 字数 82 浏览 7 评论 0原文

如何完全用 C# 代码生成 NES 调色板,而不使用任何常量值?

我想以与 PPU 相同的方式预先计算调色板。

谢谢!

How can I generate the NES palette entirely in C# code, without using any constant values?

I want to precalculate the palette in the same way that the PPU does.

Thanks!

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

荒路情人2024-12-09 17:20:27

您可以根据 NES 发送的 YPbPr 信号来模拟芯片,但只需让自己变得简单,并使用维基百科或其他来源的十六进制值对颜色进行预编程即可。

You can simulate the chip based on the YPbPr signals the NES sents, but just make it easy for yourself and pre-program the colors using the hex values from wikipedia or some other source.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文