-
In ColorGeneratorCtrl.js is the following code for the constantin algorithm:
```
var baseTriad = tinycolor(hex).tetrad();
[...]
getColorObject(tinycolor.mix(baseDark, baseTriad[4], 15).saturate(…
-
On a recent project, we noticed that a color token with a value of [`currentColor`](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#currentcolor_keyword) was transformed to `#000000` by t…
-
### Reproduction link
[![Edit on StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/edit/antd-reproduce-5x-eojitb?file=demo.tsx)
### Steps to reprod…
-
piskel provides this tool, and I checked its source code, it is really simple.
```javascript
function lighten (color, amount) {
amount = (amount === 0) ? 0 : (amount || 10);
var hsl = ti…
-
I'm trying to add additional globals for test files (ending in .spec.js), using the overrides and a regex for test files, however this does not work.
"globals": {
"angular": false,
"tinycol…
-
Is it possible to retrieve the alpha value when using color.hex on ColorEvent?
it would be better than doing
```typescript
let hexValue = colorEvent.color.hex || '';
if (hexValue.length === 7)…
-
So im trying to load tinycolor in a electron app. I add the cdn link to my `index.html`, but when i go in the developer console, I get this error.
![image](https://user-images.githubusercontent.com/4…
-
`TinyColor` vs `tinycolor`:
The lowercase variation is the v1 API, so keeping that would make migration easier. The camel cased variation is more typical for class naming.
This mostly just affec…
-
tinycolor.mix('#7954fA', '#212529', 20) is not working in my react native project.
-
Summary:
```javascript
import Tinycolor from 'npm:tinycolor2';
let invalidColor = new Tinycolor('');
let clonedColor = invalidColor.clone();
let shouldBeTrue = invalidColor.isValid() === clonedCo…