# Matrix Editor
**Repository Path**: walkline/matrix-editor
## Basic Information
- **Project Name**: Matrix Editor
- **Description**: 点阵图编辑器是 Matrix Clock 项目的配套软件,用于生成动画帧数据并输出 Python 代码。
- **Primary Language**: C#
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2023-07-31
- **Last Updated**: 2024-07-14
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
Matrix Editor

### 数据结构
* 每一帧画面尺寸为`6行 * 9列`像素,排列顺序为`从上到下,从左到右`,即:
```doc
0 3 6
1 4 7
2 5 8
```
* 用一个二维数组记录每一帧图像
```csharp
List frames = new List();
int[] frame = new int[54];
frames.Add(frame);
```
* 提前定义一个颜色列表,用于色盘赋值以及保存帧数据
```csharp
Color colors = {
Color.RED,
Color.White,
Color.Lime,
};
```
* 使用变量保存当前颜色序号,绘制图像时实时保存到帧数据中,使用变量保存当前帧序号
```csharp
int color_index = 0;
int frame_index = 0;
```
* 帧数据保存颜色序号
```csharp
frames[frame_index][0] = color_index
frames[frame_index][15] = color_index
```
### 相关项目
* [MicroPython WS2812 Led Clock](https://gitee.com/walkline/micropython-ws2812-led-clock)
### 合作交流
* 联系邮箱:
* QQ 交流群:
* 走线物联:[163271910](https://jq.qq.com/?_wv=1027&k=xtPoHgwL)
* 扇贝物联:[31324057](https://jq.qq.com/?_wv=1027&k=yp4FrpWh)

