cheatsnake / xcolors-api Goto Github PK
View Code? Open in Web Editor NEW๐ HTTP API for generating & converting colors.
Home Page: https://x-colors.yurace.pro
License: MIT License
๐ HTTP API for generating & converting colors.
Home Page: https://x-colors.yurace.pro
License: MIT License
Hi, I am using your color api on one of my project but there is an issue in the API. For example if I search with some specific colors like black, white, maroon, teal etc then the api is not returning the appropriate colors. Please look into this on priority. Anticipating a response.
When making a request such as https://x-colors.herokuapp.com/api/random/blue?number=8&type=light
wherein a shade is specified, the response will contain invalid HSL color codes, missing the %
sign in the lightness component, as follows:
"hsl" : "hsl(100, 98%, 66)"
This also happens if the specified shade is all
, but not if nothing is specified
[kett] ~ curl "https://x-colors.herokuapp.com/api/random/all?number=1" 2>/dev/null | json_pp
{
"hex" : "#03871D",
"hsl" : "hsl(132, 98%, 53)",
"rgb" : "rgb(3, 135, 29)"
}
[kett] ~ curl "https://x-colors.herokuapp.com/api/random?number=1" 2>/dev/null | json_pp
{
"hex" : "#661E06",
"hsl" : "hsl(15, 94%, 40%)",
"rgb" : "rgb(102, 30, 6)"
}
I didn't dig deep in the code, but I'm pretty sure this is all due to the missing percentage sign in the following line:
xColors-api/src/services/color.service.ts
Line 21 in 69227f7
Hello , Iยดm currently using your color API for a project but it has stopped working.
The website takes a lot of time to load and then fails.
convertRgbToHsl
seems to output the same values a conversion to HSV/HSB would, rather than to HSL.
Hello, Developers! Due to the closure of free hosting service Heroku, I decided to move all my public APIs projects on my own server. The app continues to work as usual, you just need to replace the old address x-colors.herrokuapp.com with the new permanent domain name x-colors.yurace.pro
.
Thank you for continuing to use the xColors API!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.