Created
October 13, 2021 16:36
-
-
Save GRizzi91/ef7d6c165baa78686d81c82163acad4b 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 drawLine( | |
color: Color, | |
start: Offset, | |
end: Offset, | |
strokeWidth: Float = Stroke.HairlineWidth, | |
cap: StrokeCap = Stroke.DefaultCap, | |
pathEffect: PathEffect? = null, | |
/*FloatRange(from = 0.0, to = 1.0)*/ | |
alpha: Float = 1.0f, | |
colorFilter: ColorFilter? = null, | |
blendMode: BlendMode = DefaultBlendMode | |
) | |
fun drawRect( | |
color: Color, | |
topLeft: Offset = Offset.Zero, | |
size: Size = this.size.offsetSize(topLeft), | |
/*@FloatRange(from = 0.0, to = 1.0)*/ | |
alpha: Float = 1.0f, | |
style: DrawStyle = Fill, | |
colorFilter: ColorFilter? = null, | |
blendMode: BlendMode = DefaultBlendMode | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment