📄 kanji.cpp
字号:
// This file is in the public domain.// There are no restrictions on any sort of usage of this file.// This file's encoding is UTF-8.// MonaGUI発祥の地。// すべてはここから始まった。#include <monapi.h>using namespace MonAPI;const char* kan[] = { "@...@..@....", ".@@@@@@@@@@.", "....@..@....", "...@@@@@@@..", "@..@..@..@..", ".@.@@@@@@@..", "......@.....", "..@@@@@@@@..", ".@....@.....", ".@.@@@@@@@..", "@....@.@@...", "@.@@@....@@.", NULL};void MonaDrawString(Screen* scr, int x, int y, dword fore, dword back, const char** image){ for (; *image != NULL; image++, y++) { int xx = x; for (const char* line = *image; *line != '\0'; line++, xx++) { scr->putPixel16(xx, y, *line == '@' ? fore : back); } }}int MonaMain(List<char*>* pekoe){ Screen scr; for (int i = 0; i < 100; i += 12) { MonaDrawString(&scr, i, i, 0xff0000, 0xffffff, kan); } return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -