Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/riccardoscalco/canvas-fill-text-on-arc
Utility function for drawing text on an arc using the canvas API.
https://github.com/riccardoscalco/canvas-fill-text-on-arc
arc browser canvas circle html5 text
Last synced: about 1 month ago
JSON representation
Utility function for drawing text on an arc using the canvas API.
- Host: GitHub
- URL: https://github.com/riccardoscalco/canvas-fill-text-on-arc
- Owner: riccardoscalco
- License: mit
- Created: 2019-06-03T13:56:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-03T03:07:49.000Z (almost 2 years ago)
- Last Synced: 2024-04-27T07:32:55.734Z (7 months ago)
- Topics: arc, browser, canvas, circle, html5, text
- Language: JavaScript
- Size: 638 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# canvas-fill-text-on-arc
Utility function for drawing text on an arc using the canvas API.
## Install
```sh
npm install canvas-fill-text-on-arc
```## Usage
```js
import fillTextOnArc from 'canvas-fill-text-on-arc';// Set font
context.font = 'normal 14px serif';// Draw text
fillTextOnArc(
context,
'some text',
cx,
cy,
radius,
spacing
);
```