Coder Social home page Coder Social logo

Comments (18)

hoangsonbk avatar hoangsonbk commented on June 18, 2024 1

Hi, just to check if we have this feature already?

from color.

MoOx avatar MoOx commented on June 18, 2024

Nope, but if something needs to be implemented, it will be probably #rrggbbaa.
Should be done easily by adding hexAlphaString in color-string package.

from color.

kof avatar kof commented on June 18, 2024

Nope, its AARRGGBB

from color.

kof avatar kof commented on June 18, 2024

https://msdn.microsoft.com/en-us/library/ms532930(v=vs.85).aspx

Color is expressed in #AARRGGBB format, where AA is the alpha hexadecimal value, RR is the red hexadecimal value, GG is the green hexadecimal value, and BB is the blue hexadecimal value. The alpha value controls the opacity of the object. An alpha value of 00 is transparent, while a value of FF is opaque.

from color.

Qix- avatar Qix- commented on June 18, 2024

ARGB or RGBA are two different representations - both are valid, but some are used in different places. RGBA makes more sense from an API standpoint since common overloading practices append "optional" parameters to the end.

from color.

kof avatar kof commented on June 18, 2024

yep, however what I was asking for was specifically a string for IE compatible argb thing.

from color.

Qix- avatar Qix- commented on June 18, 2024

Unless I'm mistaken, you should be able to pass ARGB values to RGBA and get the intended result.

from color.

kof avatar kof commented on June 18, 2024

Well I need to covert to ARGB, not from.

from color.

kof avatar kof commented on June 18, 2024

I didn't find any reference whether IE filter supports rgba or anything else.

from color.

MoOx avatar MoOx commented on June 18, 2024

w3c css color spec only mention #rrggbbaa (or #rgba) https://drafts.csswg.org/css-color/#hex-notation

Anyway, PR are always welcome. I think we can bring that with alphaHexString (#argb) and hexAlphaString (#rgba).

from color.

kof avatar kof commented on June 18, 2024

I think its IE only non standard thing.

from color.

Qix- avatar Qix- commented on June 18, 2024

(sigh) Of course it's an IE thing. I'll add this in the new version.

from color.

kof avatar kof commented on June 18, 2024

👍

from color.

MoOx avatar MoOx commented on June 18, 2024

@Qix- It's in recent CSS specs too.

from color.

Qix- avatar Qix- commented on June 18, 2024

This is actually a color-string addition :) I'll create a ticket for you.

Thanks for bringing it up! I'm not sure if it'll make it into the 1.x makeover at this point, but I'll definitely address it.

from color.

Qix- avatar Qix- commented on June 18, 2024

Nope, feel free to help out and open a PR :)

from color.

headwindz avatar headwindz commented on June 18, 2024

I have opened a PR for this. Please help review :- @Qix-

from color.

Qix- avatar Qix- commented on June 18, 2024

Released .hexa() as 4.2.0. Thanks @n0rush :)

from color.

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.