Skip to content

Commit

Permalink
Update TestRenderer.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Hobbyshop committed Apr 18, 2024
1 parent c6a1ce1 commit 716592b
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,16 +183,13 @@ class TestRenderer : Renderer {
y: Float,
width: Float,
height: Float,
r0: Float,
r1: Float,
r2: Float,
r3: Float,
radius: CornerRadius,
color: Color
) {
color.use {
NanoVG.nvgRGBAf(color.red / 255f, color.green / 255f, color.blue / 255f, color.alpha / 255f, it)
NanoVG.nvgBeginPath(vg)
NanoVG.nvgRoundedRectVarying(vg, x, y, width, height, r0, r1, r2, r3)
NanoVG.nvgRoundedRectVarying(vg, x, y, width, height, radius.topLeft, radius.topRight, radius.bottomRight, radius.bottomLeft)
NanoVG.nvgFillColor(vg, it)
NanoVG.nvgFill(vg)
NanoVG.nvgClosePath(vg)
Expand Down

0 comments on commit 716592b

Please sign in to comment.