Comments (5)
Guess that it is only your documentation which fails :-)
The method looks like a static
method, so it should be used like this:
tinycolor.darken("fff", 10)
from tinycolor.
Can you check and make sure you are using the latest version? This works for me on https://bgrins.github.io/TinyColor/ (the API changed in #57 for version 1.0. If you are using an older version, then using tinycolor.darken("fff", 10)
should still work fine.
from tinycolor.
You are right @bgrins - I was using tinycolor from codepen.io - and I guess that they need to update to the latest version of your code. The current version I guess is an old version:
http://cdnjs.cloudflare.com/ajax/libs/tinycolor/0.11.1/tinycolor.min.js
from tinycolor.
@netsi1964 Ah I see, thanks for pointing that out. We need to bump the version for cdnjs to 1.0.0 as in #49
from tinycolor.
Filed cdnjs/cdnjs#3902 to update to 1.0.0
from tinycolor.
Related Issues (20)
- Details lost when lightening or brightening an image
- Monochrome is only working in in darker range.
- Trying to get in touch regarding a security issue
- In built way to automatically Darken or Lighten by amount depending on the color luminance
- Is toFloatString() implemented?
- React 18 types mismatch
- Feature: include alpha in Hex HOT 2
- Is there a way to reverse a colour, like a negative image?
- Support for LCH?
- Octal literal in strict mode
- tinycolor.mix(color1, color2, amount = 50) not working in React native HOT 1
- Doesn't work with calc HOT 1
- tinycolor is not a function HOT 39
- remove `engines` field from package.json
- Task: Publish 1.6.0 to npm
- Remove tinycolor.js and dist/tinycolor-min.js once we confirm they aren't used HOT 1
- Include a Changelog HOT 4
- asset files includes ES6 syntax HOT 2
- Task: Publish 1.6.1
- [Question] Overlay Colors
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tinycolor.