0.0.8 • Published 11 months ago

mandarjs v0.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
11 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

11 months ago

0.0.7

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.1

11 months ago

0.0.0

11 months ago