vojtamolda / Plotly.swift

Interactive data visualization library for Swift
https://vojtamolda.github.io/Plotly.swift/
MIT License
82 stars 8 forks source link

Color.transparent isn’t opaque #23

Open vojtamolda opened 2 years ago

vojtamolda commented 2 years ago

The Color.transparent static property isn't actually transparent. It's defined as Color.RGB(255, 255, 255, 1.0) but should be Color.RGB(255, 255, 255, 0.0) instead.

vojtamolda commented 2 years ago

The bug prevents natural use of Color.transparent to achieve completely opaque plot backgrounds and paper, i.e. setting the Layout.plotBackgroundColor = .transparent and Layout.paperBackgroundColor = .transparent.