SGL
The SGL is a hardware agnostic library that provides graphic and text primitives. It can be easily tailored to suit any hardware
Install / Use
/learn @FabioRM/SGLREADME
#SGL - Simple Graphical Library
A low-level agnostic library that provides basic graphical functionalities to work with graphical displays. It provides primitives to draw circles, rectangles, rounded rectangles, n-edges polygons, texts, lines and more.
It consists of only three parts:
- SGL
- SGL_LL
- fontLib
SGL.c / SGL.h
implements the core functions
the header is commented and the names of the variables should be easily readable
SGL_LL.c / SGL_LL.h
these files must be tailored to your specific application (and hardware)
the header is commented and the names of the variables should be easily readable
fontLib.c / fontLib.h
these files are generated through the python script "generateFontsLib.py".
Demo on YouTube: https://www.youtube.com/watch?v=9QzmGL1dB9o
Generating fontLib.c / fontLib.h
-
place one or more font file in the same directory as "generateFontsLib.py"
-
run the python script
supports ".ttf" and ".otf"
it is possible to customize the font generation working on the script
as example: changing font sizes
PLEASE NOTE that SGL.h contains this line:
#define SGL_DEFAULT_FONT (FONT_TMSBLD_24)
which parameter must be modified to one of your chosen font's name. The list of all generated fonts is in fontLib.h
Related Skills
node-connect
350.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
