Aktionen

Working with p5: Unterschied zwischen den Versionen

Aus exmediawiki

(Die Seite wurde neu angelegt: „=== working with p5 === <br> <br>“)
 
 
(6 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
=== working with p5 ===
+
<br>
 +
back to [[Material%26Process-24 | material&process summer 2024]]<br>
 +
<br>
 +
 
 +
=== p5 ===
 +
 
 +
<br>
 +
<br>
 +
 
 +
==== for working in a browser ====
 +
link to the [https://editor.p5js.org/ editor],
 +
<br>
 +
==== for working locally ====
 +
some explanation for [https://exmediawiki.khm.de/index.php/Testp5 working locally]
 +
<br>
 +
<br>
 +
==== for creating certain output ====
 +
when working with technologies and machines like laser cutter and risograph printing<br>
 +
 
 +
it is necessary to extract svg from our p5-sketches, so we need the following libraries and the version 0.7.1 of p5<br>
 +
 
 +
<br>
 +
==== Copy and paste the following libraries inside the <head> tags of the index.html of the P5: ====
 +
<br>
 +
  <head>
 +
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.1/p5.min.js"></script>
 +
 
 +
    <script src="https://unpkg.com/p5.js-svg@1.3.1"></script>
 +
   
 +
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.1/addons/p5.dom.min.js"></script>
 +
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.1/addons/p5.sound.min.js"></script>
 +
    <link rel="stylesheet" type="text/css" href="style.css">
 +
    <meta charset="utf-8" />
 +
 
 +
  </head>
 
<br>
 
<br>
 
<br>
 
<br>

Aktuelle Version vom 7. April 2024, 19:14 Uhr


back to material&process summer 2024

p5



for working in a browser

link to the editor,

for working locally

some explanation for working locally

for creating certain output

when working with technologies and machines like laser cutter and risograph printing

it is necessary to extract svg from our p5-sketches, so we need the following libraries and the version 0.7.1 of p5


Copy and paste the following libraries inside the <head> tags of the index.html of the P5:


 <head>
   <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.1/p5.min.js"></script>
 
   <script src="https://unpkg.com/p5.js-svg@1.3.1"></script>
   
   <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.1/addons/p5.dom.min.js"></script>
   <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.1/addons/p5.sound.min.js"></script>
   <link rel="stylesheet" type="text/css" href="style.css">
   <meta charset="utf-8" />
 </head>