Giter VIP home page Giter VIP logo

Comments (5)

netsi1964 avatar netsi1964 commented on June 4, 2024

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.

bgrins avatar bgrins commented on June 4, 2024

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.

netsi1964 avatar netsi1964 commented on June 4, 2024

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.

bgrins avatar bgrins commented on June 4, 2024

@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.

bgrins avatar bgrins commented on June 4, 2024

Filed cdnjs/cdnjs#3902 to update to 1.0.0

from tinycolor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.