Last active
July 29, 2020 15:54
-
-
Save cioccarellia/f5b6deec9c9be0808f4f0a73fc2aa735 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
paintBucket.apply { | |
fillWith(Color.LIME) | |
mix() | |
println(currentPaintColor) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
paintBucket.also { | |
it.fillWith(Color.MAGENTA) | |
it.mix() | |
println(it.currentPaintColor) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment