0.0.8 • Published 5 months ago

mandarjs v0.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

MandarJS

MandarJS is a lightweight JavaScript library that applies interactive visual effects to images using Three.js and custom GLSL shaders.

🚀 Installation

You can install MandarJS via npm:

npm install mandarjs

🔧 Usage

1️⃣ Import the Library

import applyImageEffects from 'mandarjs';

2️⃣ Call the Function with a Selector

applyImageEffects('img'); // Applies effects to all <img> elements

📌 Example

<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vite App</title>
  </head>
  <body>
    <div id="app"></div>
    <canvas id="canvas" ></canvas>
    <img src="lion.jpg" alt="">
    <script type="module" src="/src/main.js"></script>
  </body>
</html>

🎨 Features

  • Uses Three.js for WebGL-based rendering
  • Custom shaders for smooth interactive effects
  • Easy-to-use API with a simple selector-based approach

✨ Author

Developed by Mandar007.

0.0.8

5 months ago

0.0.7

5 months ago

0.0.6

5 months ago

0.0.5

5 months ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.1

5 months ago

0.0.0

5 months ago