8/12/2017 - Loop system
Hi,
In this lecture we have been looking at some video on how to make a loop on p5, based on the functions of, while, and, or, etc.
Then we experimented with p5 for our next homework.
For the next lecture we had to read an article, Cybernetics and the Pioneers of Computer Art, from Thomas Dreher.
It's interesting how it talk about the history of the cybernetics, which developed in Worlds War II,
"During the Second World War computing capacities were necessary not only in fire control systems, but also in the cryptography, for whom computers were developed. Via computer-aided cryptography the code of the German Enigma code machine was deciphered."
and how cybernetics had a fundamental role in terminating the War.
References:
http://www.creativeapplications.net/processing/feedback-machines-mis-using-technology-non-linear-behavioural-systems/
To create a loop on p5 I used a patch found on the website https://p5js.org/.
I edited the patch to create this lollipop object, built from a line and an ellipse that rotate on an oblique ax.
This is my code:
var y = 100;
function setup() {
createCanvas(720, 400); // Size must be the first statement
stroke(255); // Set line drawing color to white
frameRate(30);
}
function draw() {
background(0); // Set the background to black
y = y - 4;
if (y < 2) {
y = height;
}
ellipse(0, y, height, y);
fill(100);
line(0, y, height, 8);
}
Bye bye,
Eleonora
In this lecture we have been looking at some video on how to make a loop on p5, based on the functions of, while, and, or, etc.
Then we experimented with p5 for our next homework.
For the next lecture we had to read an article, Cybernetics and the Pioneers of Computer Art, from Thomas Dreher.
It's interesting how it talk about the history of the cybernetics, which developed in Worlds War II,
"During the Second World War computing capacities were necessary not only in fire control systems, but also in the cryptography, for whom computers were developed. Via computer-aided cryptography the code of the German Enigma code machine was deciphered."
and how cybernetics had a fundamental role in terminating the War.
References:
http://www.creativeapplications.net/processing/feedback-machines-mis-using-technology-non-linear-behavioural-systems/
To create a loop on p5 I used a patch found on the website https://p5js.org/.
I edited the patch to create this lollipop object, built from a line and an ellipse that rotate on an oblique ax.
This is my code:
var y = 100;
function setup() {
createCanvas(720, 400); // Size must be the first statement
stroke(255); // Set line drawing color to white
frameRate(30);
}
function draw() {
background(0); // Set the background to black
y = y - 4;
if (y < 2) {
y = height;
}
ellipse(0, y, height, y);
fill(100);
line(0, y, height, 8);
}
Bye bye,
Eleonora
Comments
Post a Comment