ChenZihan-sudo / ECGL

ECGL is a C language graphics library based on Javascript Canvas API syntax and is designed for embedded devices.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ECGL (Embedded Canvas Graphics Library)

ECGL is a C language graphics library based on Javascript Canvas API syntax and is designed for embedded devices.

๐Ÿ› ๏ธ This project is under construction.

Current Process:

  • Refactor shader feature
  • Refactor fill and stroke function
  • Add linecap support, including miter join, round join and bevel join. (This will be finished less than 1 month.)

If you are interested in this project, you can go to the branch core-early-build for details.

You can also contact me by

Email: killbugs@yeah.net Twitter: @ChenZihanQ

Current Canvas API Syntax Support

Canvas API Support
beginPath โœ…
moveTo โœ…
lineTo โœ…
fill โœ…
stroke โœ…
fillRect โœ…
strokeRect โœ…
roundedRect โœ…
arc โœ…
closePath โœ…
fillText ๐Ÿ› ๏ธ
drawImage ๐Ÿ› ๏ธ
quadraticCurveTo ๐Ÿ› ๏ธ
bezierCurveTo ๐Ÿ› ๏ธ
save ๐Ÿ› ๏ธ
restore ๐Ÿ› ๏ธ
translate โš ๏ธ
rotate โš ๏ธ
scale โš ๏ธ
transform โš ๏ธ
clip โš ๏ธ

โœ… Support | ๐Ÿ› ๏ธ Under construction | โš ๏ธ Support in future

Other features

  • Supports emulation on Windows, Linux and Mac is possible. (By GLFW library)
  • Antialiasing grahpics available.
  • Quick flood fill available.
  • Pixel display format RGB565, RGB888 and RGBA32 support.
  • Display devices ST7789 support. (Will add more in the future)

About

ECGL is a C language graphics library based on Javascript Canvas API syntax and is designed for embedded devices.

License:GNU General Public License v3.0


Languages

Language:C++ 84.5%Language:C 15.5%