Socket
Book a DemoInstallSign in
Socket

3d-nodes

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

3d-nodes

Prebuilt threejs shapes to use in your projects

unpublished
latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

#3d-nodes

3d-nodes has a pre-built threejs scene and some threejs geometries to add in, just add the colors, size and positions.

How to use:

first: 

    ```
        npm install 3d-nodes
    ```

second: 
    
    ```
        import Shapes, {scene, renderer} from '3d-shapes'; // use scene, renderer to add objects
        const shapes = new Shapes();

        shapes.init(<color in hexadecimel>); // initalize the threejs scene
    ```

third: 

    ```
        <script defer type="module" src="./index.js"></script> //add this to the header in your html file
        
        //add this to your css file
        body{
            overflow: hidden;
            background-color: black;
        }
        canvas{
            position: fixed;
            top: 0;
            left: 0;
        }
    ```


FAQs

Package last updated on 16 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts