Created
October 13, 2021 16:43
-
-
Save GRizzi91/f64e2030b1bd4f0d23bc44298d364171 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
fun DrawScope.drawGameElement( | |
squareColor : Color, | |
borderColor : Color, | |
offset : Offset, | |
size : Size | |
) { | |
drawRect( | |
squareColor, | |
topLeft = offset, | |
size = size | |
) | |
drawRect( | |
borderColor, | |
topLeft = offset, | |
size = size, | |
style = Stroke(width = 1f) | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment