Skip to content

Commit 359a226

Browse files
committed
add dark-mode image
1 parent 8ef06d2 commit 359a226

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
![Skia Canvas](/test/assets/readme-header@2x.png)
1+
<picture>
2+
<source media="(prefers-color-scheme: dark)" srcset="test/assets/readme-header-dark@2x.png">
3+
<img alt="Skia Canvas" src="test/assets/readme-header@2x.png">
4+
</picture>
25

36
Skia Canvas is a browser-less implementation of the HTML Canvas drawing API for Node.js. It is based on Google’s [Skia](https://skia.org) graphics engine and as a result produces very similar results to Chrome’s `<canvas>` element. The library is well suited for use on desktop machines where you can render hardware-accelerated graphics to a window and on the server where it can output a variety of image formats.
47

test/assets/readme-header-dark@2x.png

71.8 KB
Loading

test/assets/readme-header@2x.png

38 Bytes
Loading

0 commit comments

Comments
 (0)