Comments (3)
Thank you for the report and the bisect.
I'll try to look closely at this tomorrow.
from fltk-rs.
It’s a difficult issue as you said. I’ve reverted the from_rgbi method to as it was, b1406c3. And added a check for the to_rgb method which should work with fltk’s color map. This should also address #1511
I think the only outlier will be Color::TransparentBg since it doesn’t map into the colormap, but it’s already a special value for the Terminal widget and is thus documented as so.
from fltk-rs.
The removal of the mapping logic solves this issue. The check solves #1511, but if some other user has code that relies on the assumption that Color::from_rgbi(0).to_rgb() == (0, 0, 0)
this change will break it. Let's hope that's not the case :)
Thank you for working on this!
from fltk-rs.
Related Issues (20)
- [BUG] Can't use `AnimGifImage` HOT 8
- [BUG] Program crashes on start on linux on raspberry pi: [xcb] Unknown sequence number while processing queue HOT 4
- [BUG] Cannot get RGB value for Color::Foreground without introducing dependency on fltk-sys HOT 1
- Support `raw-window-handle` 0.6 HOT 4
- why doesnt NativeFileChooser::show return the underlying result of the fltk show call HOT 2
- get_selection and row_selected dont agree in TableRow HOT 4
- I dont see how to call FL_tile::position HOT 3
- sysmenu floats on top of other windows on ubuntu 22 HOT 8
- fl_contrast_mode is not exposed HOT 2
- ignore this
- FL_Tile::size_range is not exposed HOT 8
- Issue with root tree node HOT 1
- [BUG] app init panics with the "single-threaded" feature HOT 2
- Project with fltk cannot be built with Target x86_64-unknown-linux-musl. HOT 4
- Supposedly same code ported from c++ to rust produces different results HOT 3
- [BUG]trying to stop sysmenubar from resizing HOT 3
- Use with window viberancy HOT 12
- Problem converting RGB to RGBA RGBImage HOT 2
- window.fullscreen(true) broken in 1.4.26 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fltk-rs.