2009-05-02から1日間の記事一覧
こど /** * 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…
こうど /** * 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 = …
コードじゃ /** * 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…