MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / FadeToColorImageOperation

Class FadeToColorImageOperation

source/core/StarImageProcessing.hpp:49–58  ·  view source on GitHub ↗

Fades R G and B channels to the given color by the given amount, ignores A

Source from the content-addressed store, hash-verified

47
48// Fades R G and B channels to the given color by the given amount, ignores A
49struct FadeToColorImageOperation {
50 FadeToColorImageOperation(Vec3B color, float amount);
51
52 Vec3B color;
53 float amount;
54
55 Array<uint8_t, 256> rTable;
56 Array<uint8_t, 256> gTable;
57 Array<uint8_t, 256> bTable;
58};
59
60// Applies two FadeToColor operations in alternating rows to produce a scanline effect
61struct ScanLinesImageOperation {

Callers 1

imageOperationFromStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected