@birdflop/rgbirdflop
v0.1.15
Published
RGBirdflop library for generating Minecraft text color gradients.
Readme
RGBirdflop NPM Package
This package is used to generate RGB gradient text for Minecraft without having to make API calls and is the most recommended way to use RGBirdflop in your projects.
Installation
To install the RGBirdflop NPM package, use the following command:
npm install @birdflop/rgbirdflopUsage
Here is a basic example of how to use the RGBirdflop NPM package:
import { rgbDefaults, generateOutput } from '@birdflop/rgbirdflop';
function getOutput(options: Partial<typeof rgbDefaults>) {
const mergedOptions = {
...rgbDefaults,
...options,
};
const output = generateOutput(mergedOptions);
return output;
}
const result = getOutput({
colors: [
{ hex: '#ff0000', pos: 0 },
{ hex: '#00ff00', pos: 50 },
{ hex: '#0000ff', pos: 100 },
],
text: 'Hello, World!',
bold: true,
});
console.log(result);Contributing
All contributions are welcome. Birdflop is a community-project aiming to support its community.
Setting up a Local Development Environment
To contribute to RGBirdflop, you'll need to set up a local development environment as your testing ground.
Prerequisites
- Node.js (version 24.13.0 or higher)
- pnpm package manager
Steps to Set Up
- Clone the Repository: Fork the Birdflop website repository on GitHub https://github.com/birdflop/web and clone it
- Install Dependencies: Navigate to the project directory and run
pnpm installto install all necessary dependencies. - Build the Project: Run
pnpm build.pkgto build the RGBirdflop package. - Run the Development Server: Start the development server with
pnpm start. The website should now be accessible athttp://localhost:5173.
Thank you to our Contributors
Forking & Licensing
If you are hosting this site or a single page from this site for your server or own project, please credit the original in some way. A link to the original GitHub is sufficient. {'<3'} This project is dual-licensed. For open-source usage, it is available under the AGPL-3.0 license (OSS_LICENSE.md). Additional closed-source use, both commercial and non-commercial, is permitted under the details outlined in CSS_LICENSE.md. Licensing is required to re-use the RGBirdflop / RGB Birdflop gradient creator code.
