Armel Asselin: > in pure object point of view, a color should not contain an opacity value > this is not logical, a Material could (as for example in 3D renderers > languages, like POV)
In Java the Color class includes alpha and C# is the same. http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Color.html I thought it may be how more recent APIs are handling colour. Similar to the move towards floating point coordinate systems with subpixel rendering. > hum yes probably, for sure palettized devices cannot easily support alpha... > combinations cannot be determined in advance, the only way to go is fixed > palette for a portion of it but that's not really good either. The current code isn't great with palettized screens but it is still usable. Here is the same screen on 8 bit displays: http://scintilla.sourceforge.net/Alpha8.png GTK+ http://scintilla.sourceforge.net/PaletteAlpha.png Windows GTK+ seems to like dithering in other widgets and I expected it to dither the translucent drawing since the call includes the GDK_RGB_DITHER_NORMAL option. Possibly the code could be improved on GTK+. Palette entries could be added for the translucent colours against white and black backgrounds or against the background of the default style and this would often (but not always) display better. Robert Roessler: > The picture looks nice, but alpha on a caret that is usually one pixel > wide? It (just talking about the caret) seems like a pretty subtle > effect. ;) The caret.line.back setting is for the full width greeny yellow line that shows which line the caret is on. Not a feature I like myself but it is the main thing that people have suggested translucency for as the current code overrides the background completely. > BTW, this could add "interesting" semantics to, say, markers - when > displaying multiple markers for a line, instead of higher-numbered > ones obscuring lower-numbered ones, they could now be "blended" (with > weighting [possibly] coming from their alpha values)... > > This presumably only makes sense if all of the markers you want to > blend have alphas - or maybe if even one marker has an alpha, then any > markers without it get assigned a default alpha value. The three main areas seem to be caret.line.back, indicators and markers. With markers that are displayed as a background colour on the text rather than in the margin, translucency may help. OTOH if you blend enough colours together you get mud. Neil _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
