ggordan/GutterColor

Add support for displaying transparency

tdhsmith opened this issue · 7 comments

Another feature I was thinking about... would it be useful to actually render alpha channels in some way? I was thinking something like the checkered black-and-white pattern used by a lot of image editors... drawing that beneath any color with transparency and letting it show through. This should probably be controlled by user option and not enabled by default.

Yes. This would be really useful on the rgba patterns.

Is this something that's possible with Imagemagick?

Yeah the drawing primitives they provide are pretty extensive. I'm not positive whether we can cram it all into a single command or not, but it's definitely drawable.

Wait duh... we should probably just pre-generate the checkerboard image and then we can use the composite commands to just insert it before drawing the color.

Yeah, we can easily ship GutterColor with a pre-generated checkered image, then just composite the alpha image on top.

This should be optional and on by default.

Something like this?

css_test_with_transp

red_color_ramp

NICE!