-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Unclear console message if image in loadImage is not found #868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@eharkins100 It seems as if you have not actually imported
Alternatively, you can host the images on another site and provide its URL instead of |
i'm finding the same thing, that i'm able to get that console message to appear if i just copy your code into a new sketch and don't upload any images. however, the console message is not clear, and that's an issue! |
@catarak I can help investigating this |
thank you
i found the problem
i am a newbie and it was my own error
i had an incorrect filepath to the image i was trying to display
i was confused because the console error message did not help me very much
thanks again for your nice disposition to help
take care
ed
…On Tue, Mar 5, 2019 at 11:34 PM Laksh Singla ***@***.***> wrote:
@catarak <https://github.com/catarak> I can help investigating this
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#868 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AuBFDwrpL52sDr-jiwuwIgFTOTzlPEiRks5vTylSgaJpZM4be3FA>
.
--
*Ed Harkins*
Middle School Technology
[email protected] | +56 9 8198 9359
--
_Confidentiality Notice: This email and any attachments contain information
belonging to Nido de Aguilas which may be confidential. This information is
intended solely for the individual or entity to which it is addressed. If
you are not the intended recipient, you are notified that disclosing,
copying, distributing, or other use of this information is strictly
prohibited. If you have received this email in error, please notify the
sender immediately._
|
thanks for your help!
very appreciated
…On Tue, Mar 5, 2019 at 7:31 PM Cassie Tarakajian ***@***.***> wrote:
i'm finding the same thing, that i'm able to get that console message to
appear if i just copy your code into a new sketch and don't upload any
images. however, the console message is not clear, and that's an issue!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#868 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AuBFD9roYfT9-7PcbMIlHhuJaszd90_8ks5vTvBSgaJpZM4be3FA>
.
--
*Ed Harkins*
Middle School Technology
[email protected] | +56 9 8198 9359
--
_Confidentiality Notice: This email and any attachments contain information
belonging to Nido de Aguilas which may be confidential. This information is
intended solely for the individual or entity to which it is addressed. If
you are not the intended recipient, you are notified that disclosing,
copying, distributing, or other use of this information is strictly
prohibited. If you have received this email in error, please notify the
sender immediately._
|
Hello @catarak, I'd like to work on this issue. I did basic research about it and it seems that the issue is not with the What I plan to be able to do is trap 404 server response errors, and be able to display a helpful message for that. So, I put a
Do you have any suggestions on how I could make use of this |
there's a file called |
closing as duplicate of #468 |
Nature of issue?
Found a bug (more likely a user error by me)
Web browser and version: <Google Chrome | 72.0.3626.119 (Official Build) (64-bit)>
Operating System: <MacOSX Sierra 10.12>
Steps to reproduce this bug:
In openprocessing.org code editor, this code works the way I want it, but in the p5 editor, I get his console message:
Event {isTrusted: true, constructor: Object}
`var imgAA;
var imgBB;
var x = 100;
var y = 100;
var Xspeed = 4;
var Yspeed = 3.5;
function preload(){
imgAA = loadImage('aa.png');
imgBB = loadImage('bb.png');
}
function setup() {
createCanvas(600, 600);
background(100);
}
function draw() {
background(127);
image(imgAA, x, y, 100, 100);
image(imgBB, y, x, 100, 100);
x = x + Xspeed;
y = y + Yspeed;
if (x > width){
Xspeed = -4;
}
if (x < 0){
Xspeed = 4;
}
if (y > height){
Yspeed = -3.5;
}
if (y < 0){
Yspeed = 3.5;
}
}`
The text was updated successfully, but these errors were encountered: