1. A computer-implemented method, the method comprising: adjusting a dimension of a mask based on a resolution value, the mask defining a shape of a foreground element; identifying, using one or more processors, a set of pixels of a background element according to the mask; determining a color value for a pixel of the foreground element, wherein the determining comprises ascertaining a value of a measure of brightness of one or more pixels of the set of pixels of the background element to which the pixel of the foreground element is correlated, and calculating the color value for the pixel of the foreground element based on the value of the measure of brightness and a value of an adjustable contrast variable, wherein the calculating the color value for the pixel of the foreground element further comprises calculating the color value for the pixel of the foreground element to preserve in the foreground element a color component of the one or more pixels of the set of pixels of the background element to which the pixel of the foreground element is correlated, and calculating the color value for the pixel of the foreground element to increase contrast with the value of the measure of brightness according to the value of the adjustable contrast variable; and displaying the foreground element with the pixel of the foreground element having the color value.