C# 元胞自动机的图形实现?

发布于 2025-01-02 14:53:33 字数 101 浏览 4 评论 0原文

在我最新的项目中,我应该用 C# 实现元胞自动机。我需要有关如何创建单元格数组的图像并显示当前状态,然后在勾选后显示整个下一个状态的帮助。我也是 C# 新手。 我应该如何实现状态改变效果?

In my latest project i should implement cellular automaton in C#. I want help about how to create the image of array of cells and display present state and then display the whole of next state after a tick. I am also new to C#.
How should I implement the state changing effect?

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

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

发布评论

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

评论(1

夜夜流光相皎洁 2025-01-09 14:53:33
  • 创建一个可以显示位图的控件。
  • 显示控件。
  • 将自动机的状态写入位图。
  • 设置控件显示位图。
  • 计算自动机的新状态。
  • 返回第三步。

这是一个模糊的答案,因为问题是模糊的。如果您想要更具体的答案,请提出更具体的问题。

  • Create a control that can display a bitmap.
  • Display the control.
  • Write the state of the automaton to a bitmap.
  • Set the control to display the bitmap.
  • Compute the new state of the automaton.
  • Go back to step three.

That's a vague answer because the question is vague. If you want a more specific answer then ask a more specific question.

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