Skip to content

Commit

Permalink
Merge pull request #170 from non-npc/patch-17
Browse files Browse the repository at this point in the history
resolved TypeError: ShaderMask.init() got multiple values for argument 'shader' in shader-mask-gradient.py
  • Loading branch information
ndonkoHenri authored Sep 12, 2024
2 parents ba37f5c + ab6b9c5 commit 64ac74a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/controls/shader-mask/shader-mask-gradient.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import flet as ft


def main(page: ft.Page):
page.add(
ft.Row(
[
ft.ShaderMask(
ft.Image(src="https://picsum.photos/100/200?2"),
content=ft.Image(src="https://picsum.photos/100/200?2"),
blend_mode=ft.BlendMode.DST_IN,
shader=ft.LinearGradient(
begin=ft.alignment.top_center,
Expand All @@ -20,5 +19,5 @@ def main(page: ft.Page):
)
)


ft.app(target=main)

0 comments on commit 64ac74a

Please sign in to comment.