cosmograph-org / cosmos

GPU-accelerated force graph layout and rendering
Other
823 stars 53 forks source link

Add support for background color with transparency #103

Closed Stukova closed 7 months ago

Stukova commented 7 months ago

The configuration property backgroundColor now supports color with transparency in the format rgba(r, g, b, a), where a is the opacity value. For example, rgba(0, 0, 0, 0) would set the background color to black with no opacity.

🙏 This change was inspired by an issue raised by miklevin in the cosmograph-issues repository (https://github.com/cosmograph-org/cosmograph-issues/issues/14).