Check out my first novel, midnight's simulacra!

Notcurses: Difference between revisions

From dankwiki
Line 21: Line 21:


{| class="wikitable"
{| class="wikitable"
! Value !! Foreground !! Background
! Value !! Macro !! Foreground !! Background
|-
|-
| 00 || Opaque. Use the fg color unchanged. || Opaque. Use the bg color unchanged.
| 00 || <tt>CELL_ALPHA_OPAQUE</tt> ||Use the fg color unchanged. || Use the bg color unchanged.
|-
|-
| 01 || Translucent. Blend the fg color down. || Translucent. Blend the bg color down.
| 01 || <tt>CELL_ALPHA_BLEND</tt> || Blend the fg color down. || Blend the bg color down.
|-
|-
| 10 || Transparent. Select the next fg color. || Transparent. Select the next bg color.
| 10 || <tt>CELL_ALPHA_TRANSPARENT</tt> || Select the next fg color. || Select the next bg color.
|-
|-
| 11 || High-contrast. Complement bg color computed through this plane. || Forbidden.
| 11 || <tt>CELL_ALPHA_HIGHCONTRAST</tt> || Complement bg color computed through this plane. || Forbidden.
|-  
|-  
|}
|}


The value 11 is currently forbidden for a bg alpha setting, but might be used in the future. To "blend the color down" means to average the colors encountered until hitting an opaque channel, or running out of planes. To "select the next color" means to ignore this color, and instead take the color as computed by lower planes.
The value 11 is currently forbidden| 00 for a bg alpha setting, but might be used in the future. To "blend the color down" means to average the colors encountered until hitting an opaque channel, or running out of planes. To "select the next color" means to ignore this color, and instead take the color as computed by lower planes.


High-contrast text is not strictly defined. notcurses will attempt to make the glyph as readable as possible, given the background color <i>computed at the plane</i>.
High-contrast text is not strictly defined. notcurses will attempt to make the glyph as readable as possible, given the background color <i>computed at the plane</i>.


Note that a cell with the zero glyph will not have its channels considered. The containing plane's default channels will instead be factored into any color/transparency calculations (if a default glyph has been defined for the plane). A cell containing a zero glyph on a plane with a default zero glyph cannot impact the rendered scene; any associated channels will be ignored.
Note that a cell with the zero glyph will not have its channels considered. The containing plane's default channels will instead be factored into any color/transparency calculations (if a default glyph has been defined for the plane). A cell containing a zero glyph on a plane with a default zero glyph cannot impact the rendered scene; any associated channels will be ignored.
If loaded multimedia supports transparency (e.g. PNGs), transparent pixels will be considered as if <tt>CELL_ALPHA_TRANSPARENT</tt> was used.


==Releases==
==Releases==