Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhirkevich committed Aug 7, 2023
1 parent f53bfa7 commit 8f37f04
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ val options = createQrVectorOptions {
.Solid(Color(0xff345288))
ball = QrVectorColor.Solid(
ContextCompat.getColor(context, R.color.your_color)
),
frame = QrVectorColor.LinearGradient(
color = listOf(
0f to android.graphics.Color.RED,
1f to android.graphics.Color.BLUE,
),
orientation = QrVectorColor.LinearGradient
.Orientation.LeftDiagonal
)
}
shapes {
Expand Down Expand Up @@ -154,6 +162,14 @@ val options = QrVectorOptions.Builder()
.Solid(Color(0xff345288)),
ball = QrVectorColor.Solid(
ContextCompat.getColor(context, R.color.your_color)
),
frame = QrVectorColor.LinearGradient(
color = listOf(
0f to android.graphics.Color.RED,
1f to android.graphics.Color.BLUE,
),
orientation = QrVectorColor.LinearGradient
.Orientation.LeftDiagonal
)
)
)
Expand Down

0 comments on commit 8f37f04

Please sign in to comment.