Editorial for DMOPC '18 Contest 5 P0 - A Digital Art Problem


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

Author: AvaLovelace

For the Multiply and Screen modes, just output the results of applying the respective formulas to each of the 3 components. For the Overlay mode, we would need an if statement to check if each base component is less than or greater than or equal to 0.5, then use the correct formula for each component.


Comments

There are no comments at the moment.