Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Processing.js入門

 Processing.js入門

Atsushi Tadokoro

May 22, 2014
Tweet

More Decks by Atsushi Tadokoro

Other Decks in Technology

Transcript

  1. 1SPDFTTJOHʹ৮ΕͯΈΔ ‣ ҎԼͷίʔυΛهೖ size(640, 480); //640x480pixelͷը໘Λੜ੒ background(31); //എܠ৭ fill(31,127,255); //ృΓͷ৭

    stroke(255); //ઢͷ৭ point(300, 200); //(300,200)ͷ৔ॴʹ఺Λඳ͘ line(50, 100, 400, 300); //(50,100)ͷ఺͔Β(400,300)ͷ఺΁ઢΛҾ͘ rect(400, 100, 100, 300); //(400,100)ͷ఺͔Βɺ෯100ɺߴ͞300ͷ࢛֯ܗΛඳ͘ ellipse(200, 340, 300, 200); //(200,340)ͷ఺Λத৺ʹɺ෯300ɺߴ͞200ͷପԁΛඳ͘