Add RGB color model to color extension #287

dpvc 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.

@dpvc dpvc was assigned Aug 16, 2012

Isn't RGB already supported? It is tested by


The CMYK model is tested by


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


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

(minus CMYK and plus RGB)

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


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