Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
2D computer graphics
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
====Extended color models==== Text, shapes and lines are rendered with a client-specified color. Many libraries and cards provide [[color gradient]]s, which are handy for the generation of smoothly-varying backgrounds, shadow effects, etc. (See also [[Gouraud shading]]). The pixel colors can also be taken from a texture, e.g. a [[digital image]] (thus emulating rub-on [[screentone]]s and the fabled ''checker paint'' which used to be available only in [[cartoon]]s). Painting a [[pixel]] with a given color usually replaces its previous color. However, many systems support painting with [[Transparency (graphic)|transparent]] and [[translucent]] colors, which only modify the previous pixel values. <!--should elaborate: modify by mixing (weighted average) or by filtering (multiplication) --> The two colors may also be combined in more complex ways, e.g. by computing their [[bitwise operation|bitwise]] [[exclusive or]]. This technique is known as ''inverting color'' or ''color inversion'', and is often used in [[graphical user interface]]s for highlighting, rubber-band drawing, and other volatile painting—since re-painting the same shapes with the same color will restore the original pixel values. <!-- limitations -->
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)