Add RGB color model to color extension #287

Closed
dpvc opened this Issue Aug 16, 2012 · 5 comments

2 participants

@dpvc
MathJax member

Add RGB (and other?) color models to the color extension. There are quite a few, but some are easier than others to handle.

@dpvc dpvc was assigned Aug 16, 2012
@fred-wang

Isn't RGB already supported? It is tested by

LaTeXToMathML/colors/definecolor-1a.html

The CMYK model is tested by

LaTeXToMathML/colors/definecolor-1b.html

@dpvc
MathJax member

There is a difference between rgb model and RGB model. The rgb model uses numbers between 0 and 1, while RGB uses 0 to 255. There are also a half dozen others that could be included, if there is time. But I know that wikipedia needed RGB, so added that here.

@dpvc dpvc pushed a commit to dpvc/MathJax that referenced this issue Aug 17, 2012
Davide P. Cervone Added RGB color model. Perhaps more later. (Issue #287.) 049739b
@fred-wang

LaTeXToMathML/colors/definecolor-1c.html

Verified with Opera, Firefox and Chrome.

=> Ready for released, In testsuite

@fred-wang

I think this bug is fixed, do we keep it open to implement additional commands?

BTW, I'm wondering what is exactly the color package that we want to emulate with the color.js extension. It is very similar to

http://www.ctan.org/pkg/color

(minus CMYK and plus RGB)

This other package has RGB as well as many features that are not implemented in color.js:

http://www.ctan.org/pkg/xcolor

@fred-wang

Closing this bug as fixed. We should open another issue if we want to implement more color models.

@fred-wang fred-wang closed this Jun 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment