http://students.washington.edu/<UWNetID>/
, replacing
<UWNetID>
with your own UWNetID.vergil.u.washington.edu
into the Server field.public_html
folder: double-click it to enter.
img
, which is short for "image".js
, which is short for "javascript".img
folder and create a folder called project-images
.js
folder and then create a folder called projects
.p5.js
file from your Desktop into the Cyberduck window to upload it to your
js
folder.public_html
folder and it should look like the following (minus
justin.jpg
).
index.html
to your Desktop.
index.html
file from your Desktop into the Cyberduck window to upload it to your public_html
folder. It will ask you if you want to overwrite the existing file; click Continue.style.css
to your Desktop.
style.css
file from your Desktop into the Cyberduck window to upload it to your public_html
folder.justin.jpg
in
the example above).img
folder.
img
folder first and drop the image
anywhere.img
folder name,
making sure that the folder is highlighted when you release your mouse.index.html
fileindex.html
and choose "Edit with > Code"index.html
file — we've left some comments (text inside of comments <!-- looks like this -->
) to help you find your way around.src
field within the first img
tag in the
HTML to be img/<image name>
, where <image name> is the name of the
image file you just uploaded (e.g. <img src="img/justin.jpg">
).
Note: your web page will look a little strange right now, since you haven't added any projects yet (e.g., there will be some images that don't load). Don't worry about this for now — we'll fix it soon!
Note: More resources can be found at: https://itconnect.uw.edu/connect/web-publishing/shared-hosting/
img
, project-images
, js
, and
projects
folders in the correct places.index.html
file to a TA.
html
, head
, body
,
title
, and paragraph (p
) tags.You can refer to the previous section if you don't remember how to do this :)
projects
folder (inside of js
)<proj name>.js
, where <proj name> is the name of your project
(e.g. taijitu.js
)public_html
folderproject.html
to your Desktop. This file will act as a template all of your project pages.project.html
file from your Desktop into the Cyberduck window to upload it to your public_html
folder.project.html
so that it has the same name as the project you're uploading (e.g. taijitu.html
).taijitu.js
in the second script
tag to import the correct
javascript file for your projectindex.html
.jpg
or
.png
as the file extensionproject-images
folder (inside of img
) in
Cyberduck to upload itindex.html
and change the following line of code:
<a href="[NAME OF THE PROJECT].html"> <img src="img/project-images/[NAME OF THE PROJECT PICTURE].png" alt="image of [NAME OF THE PROJECT] project" /></a>
with the correct file names for your project.
index.html
, and edit it from there.index.html
using HTML and CSS (in style.css
.)
Make sure your portfolio is properly updated: we will be checking three times during the quarter.
You are encouraged to include as many assignments in your portfolio as you wish, but we will be
specifically checking for the ones listed below.
Please be aware that many of the later assignments can be quite difficult to convert to p5.js
so ask for assistance early!
We strongly recommend updating your portfolio as you complete assignments so that you don't forget the process and don't have to scramble to do it all at once just before the Updates.
Minimum project set:
Minimum project set:
Minimum project set:
The following webpage is an example you may choose to follow: http://students.washington.edu/wolfson/
index.html
) contains an image of me along with details about myself and
why I teach CSE 120.
Unfortunately, the Processing → p5.js transition is messy because the two languages are very different. Inevitably, your p5.js code will break and your project in your portfolio will not display (i.e. the drawing canvas will not appear on the HTML page). Oh no! What can you do?
In the Processing IDE, we had the Message Area, which is the normally-grey bar just below your code. This Message Area turns red if it finds an error in the line of code that your cursor is currently on (see example to the right).
If an error occurs during the execution of your program, then the error message(s) are printed to the Console, which is the black area below the Message Area. There is a similar Console in your browsers that will let you see your error messages in your p5.js projects, too!
Google Chrome:
Mozilla Firefox:
Apple Safari (Mac only):
Error messages show up in red in the Console.
Learning to read the error messages is difficult, as there is often extraneous information contained in
the message.
Focus on the messages that show your p5.js file (e.g. taijitu.js:1
) indicated on the right
-- the number after the colon indicates which line number the error occurred on.
Some common errors:
size()
function for creating your drawing canvas to createCanvas()
.int
, float
, boolean
, char
,
or color
in a variable declaration and change it to var
.void
, int
, etc.) to the keyword
function
.{
somewhere in your code..js
) in VS Code through Cyberduck
(right-click, "Edit with > Code").