Giter Site home page Giter Site logo

Comments (2)

ProjectCleverWeb avatar ProjectCleverWeb commented on May 27, 2024

The library is being refactored so it can support more complex operations. These new operations will allow you to edit colors based on how humans actually observe color. This will allow features such as emulating color blindness, more fluid gradients, better schemes, etc.

At the moment, half the unit tests are now broken or depreciated, and until the refactoring is done more and more tests will break. Unit testing fixes will come a few commits down the road after the refactor is complete. Until then please use the following code to revert to a more stable commit:

git reset --hard dfd287476deee32bc5200ab06988dc9db84ed4ed

That commit should be pretty stable. However, please keep in mind that this library is in its developmental phase. Despite how simple it appears, the mathematics and operations needed to manipulate colors in programming can be very complex, and there are often several official ways to do what is supposed to be the same thing.

I will update and close this issue and when the refactor is complete, so you can start using the latest development again.

Sorry for any convenience this has caused. I will fix it as soon as I am able to.

from php-color.

ireksawicki avatar ireksawicki commented on May 27, 2024

Hi ProjectCleverWeb,

Thanks for the reply. I just wanted to report broken PHP 7 version - and it's not only about the tests, but the normal runtime too. :) All you have to do to reproduce it is just simple new projectcleverweb\color\main('#ffffff') on PHP7.

I've already forked this lib with reverted last commit yesterday but thanks for the advice.

I'm sure it was not easy to handle all the equations. Overall this library does a great job if it comes to color manipulations in the PHP - thank you for developing and sharing it!

Best,
I.

from php-color.

Related Issues (7)

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.