KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
galaxy-generator-nodejs
★ 9
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
docker-wireguard-rhel
:
Configuration to run linuxserver/wireguard container in Centos or Rocky Linux
relaxator
:
Relax to soothing sounds
nxdk-rs
:
Rust support for NXDK
anyme_alpha_apk_archive
:
No description available.
FlashCatch
:
No description available.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
galaxy-generator-nodejs
?
Download (.md)
<h1 align="center">Galaxy Generator NodeJS</h1> <div align="center"> <a href="https://github.com/WaRtr0/galaxy-generator-nodejs/blob/main/README.md"> <img src="https://user-images.githubusercontent.com/25512932/160092140-bee4eee1-e755-48b7-b220-1d94adf14e16.png" alt="en"> </a> <a href="https://github.com/WaRtr0/galaxy-generator-nodejs/blob/main/README_FR.md"> <img src="https://user-images.githubusercontent.com/25512932/160092152-0ab75363-b38b-4a91-a745-e2aeb6741b4e.png" alt="fr"> </a> </div> # About Small [NodeJS](https://nodejs.org/) & [ThreeJS](https://threejs.org/) script created in one evening. Aiming to return an array with the position of several stars with their colors, this is generated randomly. The script fetches the array and renders the galaxy on the client side with [ThreeJS](https://threejs.org/). Viewable [here](https://WaRtr0.github.io/galaxy-generator-nodejs/public/) <img width="100%" src="https://user-images.githubusercontent.com/25512932/160088977-3e828c17-1a7d-49e6-a15c-67cdecd51c56.gif" alt="screen"> <div id="uti1"></div> # Use [1] If you just want to use the generate (backend) [Install](https://nodejs.dev/learn/how-to-install-nodejs) nodeJs, if not done Install package: ```npm install fs``` Do a ``require`` function of the ``generate.js`` file in the folder ``/server``; Example : ```js const galaxy = require('./server/generate.js'); const arrayStars = galaxy(); ``` The function ``galaxy()`` returns the default number of stars (12,000) if you want to change the number and other parameters do this: ``` const arrayStars = galaxy({nbrStar:16000}); //return array of 16000 stars ``` Other parameters : * branch : Number of branch * vWidth : Galaxy width variation * vHeitght : Galaxy height variation * vCore : Core variation (height and width) # Use [2] If you want to use everything you just have to transfer the contents of the repository to a folder on your pc. [Install](https://nodejs.dev/learn/how-to-install-nodejs) nodeJs, if not done And install packages ``` npm install fs express http ``` Look at <a href="#uti1">Utilization [1]</a> to be able to change galaxy function settings. # Contact Discord : WaRtrO#6293