2.0.0 ā€¢ Published 1 year ago

akriti v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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!

1.4.0

2 years ago

1.3.0

2 years ago

2.0.0

1 year ago

1.2.0

2 years ago

1.1.1

2 years ago

1.2.1

2 years ago

1.1.2

2 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago