forked from processing/p5.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Oz Ramos
committed
May 31, 2023
1 parent
187a25a
commit 6dcf543
Showing
6 changed files
with
27 additions
and
12 deletions.
There are no files selected for viewing
Binary file not shown.
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
Binary file added
BIN
+101 KB
test/manual-test-examples/p5.Image/arnott-wallace-eye-loop-forever.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<link rel="stylesheet" href="../styles.css"> | ||
<script language="javascript" src="../../../lib/p5.js"></script> | ||
<script language="javascript" type="text/javascript" src="./load-gifs.js"></script> | ||
</head> | ||
<body> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// For issue https://github.com/processing/p5.js/issues/6164 | ||
p5.disableFriendlyErrors = true; | ||
|
||
let gifStatic, gifAnimated; | ||
|
||
function setup() { | ||
createCanvas(200, 100); | ||
gifStatic = loadImage('rockies.gif'); | ||
gifAnimated = loadImage('arnott-wallace-eye-loop-forever.gif'); | ||
} | ||
|
||
function draw () { | ||
image(gifStatic, 0, 0); | ||
image(gifAnimated, 100, 0); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.