26/01/2018 - Arrays

 Hello,

As a homework we had to read "The Aesthetics of Generative Code", 2000, by Geoff Cox, Alex McLean, Adrian Ward; and I have been caught from the poetry they quoted, 'Best of Show' by Angie Winterbottom:


"if ((light eq dark) && (dark eq light)
   && ($blaze_of_night{moon} == black_hole)
   && ($ravens_wing{bright} == $tin{bright})){
 my $love = $you = $sin{darkness} + 1;
};

If light were dark and dark were light
The moon a black hole in the blaze of night
A raven's wing as bright as tin
Then you, my love, would be darker than sin."


Also, still from "The Aesthetics of Generative Code":

"To separate the code and the resultant actions would simply limit the aesthetic experience, and ultimately the study of these forms - as a form of criticism - and what in this context might be better called 'poetics'. Generative code encapsulates these issues: 'Its output would be... that is to say [like] poetry correctly defined; Language so well chosen and aptly arranged that, even when expressing tedious or distasteful subjects, it would remain vivid and lively and "pleasing to the ear".



During the lecture we watched arrays 7.1 on youtube; (do that as a project for the Christmas time.)

An array is defined as var num = [ n, n1, ... ]; Within the array, we need always to count from 0 our variables.

Here the example we were working on during the lecture.



Within this example, the ellipses are set as an array of objects. This could be particularly helpful to make all our selected objects to behave in a certain way, and we could create multiple arrays with different properties.

Byee,

Eleonora

Comments

Popular Posts