akriti v2.0.0
Akriti
Akriti is an open-source and lightweight API for creating 2D Graphics with JavaScript. The library works upon HTML5 Canvas API. Akriti is a handful of functions that better manage drawing on the canvas.
š Why should you choose Akriti?
When you are doing simple drawing, simple context function are enough. But at one time, many things come to play, such as handling the state of objects, animations, playing sounds, control buttons etc. Let's call them š¤ components.
It gets annoying when you have a lot of work and want complete control. And the most annoying thing you will come across is doing the calculation of drawing different shapes and forms. Things can become handy š if something is doing all this extra work for you. Here Akriti comes to save you.
Akriti helps you a lot in managing all these. It gives you a handful of control over objects, animations, sounds and their direction.
š How does Akriti help you?
Simply, it is simple. Akriti gives you a handful of tools to manage the following components:
- š Modularization of Components
- šØ Shapes and Forms Precalculations
- ā Object State Management
- šµ Audio Management
- š Animation Loop Management
These tools help a lot by doing the extra work for you.
š„± Huffff, a lot of mesh written š©.
Let's jump to the real thing, how we can use it š§.
š¤ How to use it?
In client-side JavaScript
Include Akriti's script in your HTML code from any one of the following options:
https://cdn.jsdelivr.net/npm/akriti@latest/dist/akriti.js
https://unpkg.com/akriti@latest/dist/akriti.js
Install as a Module
Run npm install akriti
and include it in your project.
With CommonJS require:
const akriti = require('akriti')
Or with ES6 import:
import * as Akriti from 'akriti'
Documentation
Read the š documentation below to learn how to draw with Akriti.
Documentation coming soon.
Creator: Kundan Bhasin (@kundanb)
š¤© Enjoy it!