Skip to content
项目

关于

Cross Platform C++ Vector Graphics Library (Inspired by the HTML5 canvas API)

设计与媒体

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Artist-Logo Artist 2D Canvas Library

Build, by platform and backend

alt Artist Sampler

Introduction

The Artist 2D Canvas Library is an abstraction layer with an API inspired by the HTML5 canvas API. The library presents a lean API modeled after the HTML Canvas 2D Context specification. The API is a not-so-thin layer above various 2D platform-specific and cross-platform 2D "backend" graphics libraries, such as Skia, Quartz-2D, and Cairo.

The Artist library goes beyond the basic HTML5 canvas API with extensions for dealing with text layout and mechanisms for text editing, fonts and font management, path creation and manipulation, and image capture and offscreen graphics.

Status: master tracks the latest stable release (currently v1.0.2). The next release, v1.1, is developed on develop, where the docs stay in sync as changes land. See NEWS.md for what is new in each release.

Backends

Artist supports five rendering backends. Only one backend is active per build.

Backend Platform CMake option Default
Quartz-2D macOS ARTIST_QUARTZ_2D=ON macOS
Direct2D Windows ARTIST_DIRECT2D=ON Windows
Skia macOS, Linux, Windows x64 ARTIST_SKIA=ON off
Cairo macOS, Linux, Windows ARTIST_CAIRO=ON Linux and others
Recording macOS, Linux, Windows ARTIST_RECORDING=ON off

With no backend option set, CMake uses the platform's native backend. Enabling one backend automatically disables the others. The recording backend draws nothing: it keeps a journal of the drawing calls, for tests.

Setup and Installation covers building with each backend: the prebuilt Skia and Cairo bundles, building them from source with vcpkg, and the Cairo backend's supported platforms and known limitations.

Documentation

The documentation is built with Antora (sources under docs/) and published at https://cycfi.github.io/artist/.

The Author

Joel got into electronics and programming in the 80s because almost everything in music, his first love, is becoming electronic and digital. Since then, he builds his own guitars, effect boxes and synths. He enjoys playing distortion-laden rock guitar, composes and produces his own music in his home studio.

Joel de Guzman is the principal architect and engineer at Cycfi Research. He is a software engineer specializing in advanced C++ and an advocate of Open Source. He has authored a number of highly successful Open Source projects such as Boost.Spirit, Boost.Phoenix and Boost.Fusion. These libraries are all part of the Boost Libraries, a well respected, peer-reviewed, Open Source, collaborative development effort.

Discord

Join the Discord channel to discuss Artist and chat with the developers.


Copyright (c) 2014-2026 Joel de Guzman. All rights reserved. Distributed under the MIT License

探索相关项目

加载中…