Sha256: b0e4bc7a8b21832d371ad91b5f8de048888e36a80e5476a40bea178de38f964e

Contents?: true

Size: 590 Bytes

Versions: 12

Compression:

Stored size: 590 Bytes

Contents

= Drawing with Colors

Almost all image drawing functions accept modulation colors. The colors of all pixels on the source image will be multiplied with these colors, where a channel value of 255 corresponds to the maximum value of 1.0. This means modulation colors can be used only to reduce particular channels of an image.

The most obvious use of this is to supply a color with an alpha value less than 255 so the image will drawn transparently, but you can also use this to darken images or to draw them in a different hue (which works best if the original image is mostly grayscale).

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
gosu-0.7.48-x86-mingw32 reference/Drawing_with_Colors.rdoc
gosu-0.7.48 reference/Drawing_with_Colors.rdoc
gosu-0.7.47.1-x86-mingw32 reference/Drawing_with_Colors.rdoc
gosu-0.7.47.1 reference/Drawing_with_Colors.rdoc
gosu-0.7.46 reference/Drawing_with_Colors.rdoc
gosu-0.7.46-x86-mingw32 reference/Drawing_with_Colors.rdoc
gosu-0.7.45-x86-mingw32 reference/Drawing_with_Colors.rdoc
gosu-0.7.45 reference/Drawing_with_Colors.rdoc
gosu-0.7.45-universal-darwin reference/Drawing_with_Colors.rdoc
gosu-0.7.44-x86-mingw32 reference/Drawing_with_Colors.rdoc
gosu-0.7.44-universal-darwin reference/Drawing_with_Colors.rdoc
gosu-0.7.44 reference/Drawing_with_Colors.rdoc