Skip to content

Commit

Permalink
[°*[><]*°]
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaudry committed Jan 14, 2025
1 parent 845c09d commit fce38da
Show file tree
Hide file tree
Showing 18 changed files with 162,576 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.class
rust-fragments/target/*.*
penplotting/web_svg2gcode/target
penplotting/*.d.ts
penplotting/*.d.ts
ift6251/nannou/*/target/*.*
68 changes: 68 additions & 0 deletions keynote-scam-vissoft24/demo1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<!DOCTYPE html>
<html lang="en">
<html>

<head>
<meta charset="UTF-8">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.min.js"></script>
<style>
body {
padding: 0;
margin: 0;
}
</style>
<style type="text/css">
.credits {
position: absolute;
text-align: left;
bottom: 8px;
width: 100%;
color: #FFFFFF;
font-family: monospace;
margin-left: 12px;
font-size: 14px
}
</style>
<style type="text/css">
.sourcecode {
position: absolute;
text-align: left;
bottom: 38px;
width: 100%;
color: #FFFFFF;
font-family: monospace;
margin-left: 12px;
font-size: 10px
}
</style>

</head>

<body style="background-color:#000000;">

<div class="sourcecode">
<pre id="fileDisplayArea"></pre>
</div>

<div class="credits">
</div>

<script>
// credits:<br>@al.my.re; p5.js

window.onload = function () {
var fileDisplayArea = document.getElementById('fileDisplayArea');
fetch("frenchcodemo.js")
.then((res) => res.text())
.then((text) => {
// fileDisplayArea.innerText = text;
})
.catch((e) => console.error(e));
}

</script>

<script src="demo1.js"></script>
</body>

</html>
43 changes: 43 additions & 0 deletions keynote-scam-vissoft24/demo1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

var w, h
var cnv

function setup() {
w = 800
h = 800
cnv = createCanvas(w, h);
centerCanvas();
colorMode(HSB, 360, 100, 100, 250);
noLoop()
}

function centerCanvas() {
var x = (windowWidth - 800) / 2;
var y = (windowHeight - 800) / 2;
cnv.position(x, y);
}

function draw() {
translate(w*0.5,h*0.5)

var vera
var molnar = 42
var density =21
var color=true
for(vera=0.3*w;vera>0.1*w;vera-=density){
if(color){
fill(50,100,100)
color=false
}
else{
fill(0,0,0)
color=true
}
quad(-vera+random(-molnar,molnar),-vera+random(-molnar,molnar),
vera+random(-molnar,molnar),-vera+random(-molnar,molnar),
vera+random(-molnar,molnar),vera+random(-molnar,molnar),
-vera+random(-molnar,molnar),vera+random(-molnar,molnar)
)
}

}
86 changes: 86 additions & 0 deletions keynote-scam-vissoft24/ikeda002.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<!DOCTYPE html>
<html lang="en">
<html>

<head>
<meta charset="UTF-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.5.0/p5.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.11/addons/p5.dom.min.js"></script>
<script src="https://unpkg.com/[email protected]"></script>
<style>
body {
padding: 0;
margin: 0;
}
</style>
</head>

<body>
<script>

var w, h, cnv, xoff, inc

function setup() {
w = windowWidth
h = windowHeight
cnv = createCanvas(w, h);
xoff = 0.0
inc = 1
colorMode(HSB, 360, 100, 100, 250);
noStroke()
background(0,0,0)
sety()
frameRate(42)
}

var ycoords
function sety(){
ycoords=[]
var y1,y2,ystep
ystep=0.2*h
y1=0
while(y1<h){
y2=y1+noise(xoff)*ystep; xoff+=inc
ycoords.push({y1:y1,y2:y2});console.log(y1+" "+y2)
y1=y2
}
}

function draw() {
//background(0,0,0)
var x1, xstep
xstep = 0.1*w
for(var i=0;i<ycoords.length;i++){
x1 = w/2
while(x1<w){
x2=x1+noise(xoff)*xstep; xoff+=inc
if(random()<0.84){fill(0,0,100)}
else{fill(0,0,0)}
if(random()<0.02){fill(220,100,100)}
quad(x1,ycoords[i].y1,x2,ycoords[i].y1,x2,ycoords[i].y2,x1,ycoords[i].y2)
x1=x2
}
x1=w/2
while(x1>0){
x2=x1-noise(xoff)*xstep; xoff+=inc
if(random()<0.84){fill(0,0,100)}
else{fill(0,0,0)}
if(random()<0.02){fill(220,100,100)}
quad(x1,ycoords[i].y1,x2,ycoords[i].y1,x2,ycoords[i].y2,x1,ycoords[i].y2)
x1=x2
}
stroke(0,100,100);line(w/2,0,w/2,h);noStroke()
}
//if(frameCount==1){noLoop();save("ikeda001.png")}
}


function windowResized() {
w = document.documentElement.clientWidth;//width of window that is available for drawing
h = document.documentElement.clientHeight;//width of window that is available for drawing
resizeCanvas(w, h);
}


</script>
</body>
36 changes: 36 additions & 0 deletions keynote-scam-vissoft24/memory.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

var w, h
var cnv

function setup() {
w = 800
h = 800
cnv = createCanvas(w, h);
centerCanvas();
colorMode(HSB, 360, 100, 100, 250);
noLoop()
}

function centerCanvas() {
var x = (windowWidth - 800) / 2;
var y = (windowHeight - 800) / 2;
cnv.position(x, y);
}

function draw() {
var cx, cy, vera, molnar, density, color
cx = 0.5 * w
cy = 0.5 * h
molnar = 11
density = 1
color = true
for (vera = 0.2 * w; vera > 0; vera -= density) {
if (color) { fill(50, 100, 100); color = false }
else { fill(0, 0, 0); color = true }

quad(cx - random(vera - molnar, vera + molnar), cy - random(vera - molnar, vera + molnar),
cx + random(vera - molnar, vera + molnar), cy - random(vera - molnar, vera + molnar),
cx + random(vera - molnar, vera + molnar), cy + random(vera - molnar, vera + molnar),
cx - random(vera - molnar, vera + molnar), cy + random(vera - molnar, vera + molnar))
}
}
Loading

0 comments on commit fce38da

Please sign in to comment.