Skip to content

Commit

Permalink
New test
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Apr 25, 2024
1 parent 6e8c971 commit 3ec8093
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ui-tests/tests/notebooks/ipycanvas.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -975,6 +975,20 @@
"\n",
"canvas"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "a5f0a7f5",
"metadata": {},
"outputs": [],
"source": [
"canvas = Canvas()\n",
"pattern = canvas.create_pattern(Image.from_url(\"https://jupyter.org/assets/homepage/main-logo.svg\"))\n",
"canvas.fill_style = pattern\n",
"canvas.fill_rect(0, 0, canvas.width, canvas.height)\n",
"canvas"
]
}
],
"metadata": {
Expand Down

0 comments on commit 3ec8093

Please sign in to comment.