Skip to content

Instantly share code, notes, and snippets.

@GRizzi91
Created October 13, 2021 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GRizzi91/f64e2030b1bd4f0d23bc44298d364171 to your computer and use it in GitHub Desktop.
Save GRizzi91/f64e2030b1bd4f0d23bc44298d364171 to your computer and use it in GitHub Desktop.
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