Neosoulink / quick-threejs

A small Library to quick start a ThreeJs project

Home Page:https://www.npmjs.com/package/quick-threejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quick-ThreeJS

Quick-threeJS is a small open-source library. As its name says, the lib will quickly set up a 3D scene with as little configuration as possible.

πŸš€ Quick start

Simply import quick-threejs and instantiate it as follows:

import QuickThreejs from "quick-threejs";

let APP = new QuickThreejs(
 {
  axesSizes: 5,
  gridSizes: 10,
  enableDebug: true,
  withMiniCamera: true,
 },
 "#experience"
);

That's it! Now you should see the following screen on your local development server preview: image

πŸ’‘ The first parameter is the initialization properties and the second is the dom element reference.

See the types definitions:

Checkout the Example folder for more details

🚧 Disclaimer

I have to apologize for not documenting this library well.

At the current time, this library is mainly for personal use.

If find this library interesting or useful and need to improve the library, please raise an issue. I'll be glad to have your feedback ❀.

License

MIT License. See the license file for more details.

Copyright @ 2023. Made with ❀ by @Neosoulink.

About

A small Library to quick start a ThreeJs project

https://www.npmjs.com/package/quick-threejs

License:MIT License


Languages

Language:TypeScript 96.5%Language:HTML 1.4%Language:JavaScript 1.2%Language:CSS 0.9%