I have been working in my first year of university and have been tasked with creating an application in Processing.
My group and I decided to create a basic template of HTML so we could call the div
's and set them to rect
s in Processing in the page.
To link the HTML and Processing, I thought we could import
it into the Processing file, like so;
import index.html;
for all the HTML files I have, but this doesn't work.
I used the import
example from this webpage;
http://processing.org/reference/import.html
Does anyone know if there is a way to import the HTML files, or do I have to go through some other method?
I'm fairly new to Processing so any help would be greatly appreciated
EDIT
here's an example rect()
;
//top right panel
rect(345, 280, 310, 200, 1, 20, 1, 20);
and the div
by the name top-right-panel
, once i've managed to link the files, should load into this rectangle. the code currently (for example) in the HTML is;
<div id = "top-right-panel">
<title>Shop Online</title>
<!-- List of latest deals on guiding shop -->
<p> This is example text</p>
</div>