2009-05-02から1日間の記事一覧

Processing の examples その9 (Basics-Data-DatatypeConversion)

こど /** * Datatype Conversion. * * It is sometimes beneficial to convert a value from one type of * data to another. Each of the conversion functions converts its parameter * to an equivalent representation within its datatype. * The conv…

Processing の examples その8 (Basics-Control-EmbeddedIteration)

こうど /** * Embedding Iteration. * * Embedding "for" structures allows repetition in two dimensions. */ float box_size = 11; float box_space = 12; int margin = 7; size(200, 200); background(0); noStroke(); // Draw gray boxes for (int i = …

Processing の examples その7 (Basics-Control-Conditionals2)

コードじゃ /** * Conditionals 2. * * We extend the language of conditionals by adding the * keyword "else". This allows conditionals to ask * two or more sequential questions, each with a different * action. */ size(200, 200); background(0…