Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/keyur-gondaliya/npm-3d-sun

3D Sun Model With Small Star System For website Background or Better Website Appearance.
https://github.com/keyur-gondaliya/npm-3d-sun

react threejs typescript

Last synced: 4 days ago
JSON representation

3D Sun Model With Small Star System For website Background or Better Website Appearance.

Awesome Lists containing this project

README

        

# @keyur-gondaliya/3d-sun

3D Sun is a React component that renders an interactive 3D representation of the sun. You can also provide custom as per needed. It is Three.js Based package so make sure you have it installed already.

## Installation

```bash
npm install @keyur-gondaliya/3d-sun three
```

## Usage

```bash
import React from 'react';
import { ThreeScene } from '@keyur-gondaliya/3d-sun';

const YourComponent = () => {
return (




);
};

export default YourComponent;
```

## Props

```bash
backgroundImage (string)
URL for the background image.

sunUVLayoutImage (string)
URL for the sun's UV layout image.

sunTextureImage (string)
URL for the sun's texture image.

disableBackground (boolean)
Default: false
Set to true to disable the background.

starCount (number)
Range: 0 to 100000
Number of stars to be displayed.

rotationSpeed (number)
Range: 0 to 1
Speed of the sun's rotation.

orbitColor (number)
Color input in the hexadecimal format. Example: 0xff0000 (Red)
```

## Example

```bash

```

Make sure to provide valid image URLs for backgroundImage, sunUVLayoutImage, and sunTextureImage.

For further customization and functionality, explore the props and their expected values.

### Happy coding!