# Add RGB color model to color extension #287

Closed
opened this Issue Aug 16, 2012 · 5 comments

### 2 participants

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.

was assigned Aug 16, 2012

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

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.

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

LaTeXToMathML/colors/definecolor-1c.html

Verified with Opera, Firefox and Chrome.

=> Ready for released, In testsuite

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

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

closed this Jun 10, 2013