fopp icon indicating copy to clipboard operation
fopp copied to clipboard

IDEA: Display colors in 7.8

Open sahi1l opened this issue 6 years ago • 1 comments

In 7.8.1, there is a list of colors and their corresponding RGB codes, but it would be a good idea to show the students what those colors actually look like. There are many types of blue, for instance, and I suspect only programmers and graphic designers know what "cyan" or "magenta" are.

https://runestone.academy/runestone/static/adrian_ac101f18/Iteration/NestedIterationImageProcessing.html

sahi1l avatar Oct 04 '18 14:10 sahi1l

I like the idea. Currently, the table does not have RGB value for cyan, which I think is nice to have to see pattern of RGB value (screenshot). screen shot 2019-01-30 at 1 38 10 pm

This is what I have found so far in getting this implemented.

  • There is no sphinx built-in feature to color text in table (read online discussion) or have div with different color.
  • That means, we need to create our own components for that.

Was playing around with JS to color div with color value passed as argument. My thought process was to have it configured like how other Runestone Components are made.

Hope this helps to anyone who follows up with the idea.

dichharai avatar Jan 30 '19 21:01 dichharai