![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@gradient-js/core
Advanced tools
@gradient-js/core
gradient-js
module for raw (object) gradient output generation
yarn add @gradient-js/core
npm install --save @gradient-js/core
<script src="https://unpkg.com/gradient-js/core@x.x.x/core.js">
import { Core } from '@gradient-js/core';
const core = new Core();
const gradient = core.get(colors, options);
In order to create a gradient you will need to pass an array of colors
and an options
object to the Core's get
method. colors
should be an array of strings in any valid css format (rgb(a), hex or hsl(a)). options
object consists of following properties:
type CoreOptions = {
useBezier: boolean;
interpolation: InterpolationMode;
samples: number;
lightnessCorrection: boolean;
};
Where each property can be described as it follows:
Option | Type | Description |
---|---|---|
useBezier | boolean | Decide whether to use chroma's scale() with bezier interpolation |
interpolation | chroma.InterpolationMode | Color interpolation space, one of: `"rgb" |
samples | number | Amount of gradient parts in the output |
lightnessCorrection | boolean | Decide whether to apply lightness correction to your gradient. |
Core's get
method will generate an array of chroma.Color
objects.
FAQs
Gradient-js core module
The npm package @gradient-js/core receives a total of 2 weekly downloads. As such, @gradient-js/core popularity was classified as not popular.
We found that @gradient-js/core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.