text
stringlengths
0
2.87M
move() {
this.x += random(-this.speed, this.speed);
this.y += random(-this.speed, this.speed);
this.x = constrain(this.x, 0, width);
this.y = constrain(this.y, 0, height);
}
display() {
push(); // Push-Matrix, um Koordinatensystem zu speichern
translate(this.x, this.y); // Verschieben des Koordinatensystems zum Mittelpunkt der Form
rotate(this.rotation); // Rotieren des Koordinatensystems um die zufällige Rotation
fill(this.color);
// Erstellung der Form basierend auf this.shapeType
switch (this.shapeType) {
case 0:
ellipse(0, 0, this.size, this.size);
break;
case 1:
triangle(-this.size/2, this.size/2, 0, -this.size/2, this.size/2, this.size/2);
break;
case 2:
rectMode(CENTER);
rect(0, 0, this.size, this.size);
break;
case 3:
beginShape();
for (let i = 0; i < 5; i++) {
let angle = map(i, 0, 5, 0, TWO_PI);
let x = this.size/2 * cos(angle);
let y = this.size/2 * sin(angle);
vertex(x, y);
}
endShape(CLOSE);
break;
}
pop(); // Pop-Matrix, um das Koordinatensystem wiederherzustellen
}
clicked(mouseX, mouseY) {
let d = dist(mouseX, mouseY, this.x, this.y);
if (d < this.size / 2) {
this.color = color(random(255), random(255), random(255));
}
}
} ```<kinrel><user>Give me Taylor Swift style song lyrics about falling in love.<user><kinrel>Verse 1:
Lost in the moment, caught in a daze
Can't help but smile, every time we gaze
Feels like forever, since we've been together
Can't get enough, of each other's laughter
Chorus:
Falling in love, it's a crazy ride
Every beat of my heart, feels like a fire inside
You're the missing piece, I've been searching for
Together we'll soar, and never look back no more
Verse 2:
Every touch, sends shivers down my spine
Every kiss, takes me higher every time
Can't imagine life, without you by my side
You're the missing piece, that makes everything right
Chorus:
Falling in love, it's a crazy ride
Every beat of my heart, feels like a fire inside
You're the missing piece, I've been searching for
Together we'll soar, and never look back no more
Bridge:
This love, it's worth the fight
Together we'll conquer, every day and night
I'll be there for you, through thick and thin
Together we'll win, in love till the end
Chorus:
Falling in love, it's a crazy ride
Every beat of my heart, feels like a fire inside
You're the missing piece, I've been searching for
Together we'll soar, and never look back no more
Outro:
Falling in love, it's a crazy ride
Together we'll soar, and never look back no more.<kinrel><user>おはよう<user><kinrel>おはよう<kinrel><user>O que havia de errado na teoria de Lamarck?<user><kinrel>A teoria de Lamarck baseava-se na idéia de que as características adquiridas durante a vida de um organismo poderiam ser transmitidas aos seus descendentes. No enta...
import tensorflow as tf
#Das ist unser Trainingsset
x_train = [0,1,2,3,4,5,8,10]
y_train = [0,1,4,9,16,25,64,100]
#Das ist der Datensatz, der zur Überprüfung genutzt wird
x_test = [6,7,11,13]
y_test = [36,49,121,169]
#Hier wird das Neurale Netz mit seinen schichten und der dazugehörigen Aktivierungsfunktion definiert
model = tf.keras.models.Sequential([