+ 1
How do you import processingJS into sololearn
I am busy coding on Khan Academy and they only use processingJS Can anyone help me? I would greatly appreciate any help
2 Respostas
+ 8
Like this:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<!--processing.js cdn-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/processing.js/1.6.6/processing.js"></script>
<script type="text/processing" data-processing-target="canvas">
//type="text/processing"
//data-processing-target=(canvas id)
//processing.js code
</script>
<canvas id="canvas"></canvas>
</body>
</html>