-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I convert #FF00 to red(#FF0000)? #190
Comments
No, because that doesn't make any sense. #FF00 equates to #FFFF0000 (alpha of 0) as per the CSS specification. I think you're misunderstanding how hex color shorthand works 😉 Shorthand for red is #F00. |
var worldString = 'Hello, world';
console.log(worldString.fontcolor('red') + ' is red in this line');
// '<font color="red">Hello, world</font> is red in this line'
console.log(worldString.fontcolor('FF00') + ' is red in hexadecimal in this line');
// '<font color="FF00">Hello, world</font> is red in hexadecimal in this line' @Qix- But why is FF00 here in red? |
That is the |
I'm parsing a old website which has a lot of font tag... |
Currently it converts #FF00 to #FFFF00.
Is there any way to convert from #FF00 to #FF0000?
Thanks.
The text was updated successfully, but these errors were encountered: