Your SlideShare is downloading. ×
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23                                                                ...
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23• Processing                          "                         ...
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)                       www.processing.org                                    ...
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23Sketch• Processing                                       "•     ...
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23size(400, 400);"stroke(192, 0, 0)"line(100, 100, 200, 200);
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/231.            Sketch           "2.                         "3.  ...
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23size(400, 400);"      size(400, 400);"                      "str...
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23size(400, 400);"stroke(192, 0, 0);"line(100, 100, 200, 200);
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23•                "         X   "         Y   "         X   "    ...
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23line       line(100, 100, 200, 200);
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23• size( ,        );"•  "    size(400, 400);"    size(800, 600);"...
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23• point     "• line    "• ellipse       "• rect
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23Processing• RGB                                          "   col...
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23• colorMode                       "• fill          "• stroke     ...
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23• smooth                                        "• strokeWeight
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23            "
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23•        "                 "                     "•             ...
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23•                                  "•        "             1, 2,...
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23•             "•    line            "• 
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23int opacity;
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23•                                         "                     ...
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23•        "• E.g.                                                ...
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23Java           	             	                                 	...
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23opacity = 50;
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23int opacity = 50;"
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/2310
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23                   10s = random(0, 100);"x = random(s, 400 – s);...
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23while        while(     ){"        "    "        }"
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23while                          10int i = 0;"while(i < 10){" s = ...
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23• ==        "• !=                    "• <             "• >      ...
N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)   2011/06/23•      400x400"•                        "•  100                 ...
Upcoming SlideShare
Loading in...5
×

論理思考とプログラミング 2011春#07

580

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
580
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "論理思考とプログラミング 2011春#07"

  1. 1. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23 #07N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski)
  2. 2. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23• Processing "   "   "   "• Processing "
  3. 3. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) www.processing.org 2011/06/23
  4. 4. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23
  5. 5. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23Sketch• Processing "•  Sketch
  6. 6. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23size(400, 400);"stroke(192, 0, 0)"line(100, 100, 200, 200);
  7. 7. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23
  8. 8. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23
  9. 9. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/231.  Sketch "2.  "3.  "4.  " 1.  " 2.  " 3.  3
  10. 10. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23size(400, 400);" size(400, 400);" "stroke(192, 0, 0);" stroke(192, 0, 0);"line(100, 100, 200, " 200); " line(100, 100, 200, 200);
  11. 11. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23size(400, 400);"stroke(192, 0, 0);"line(100, 100, 200, 200);
  12. 12. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23•  "   X "   Y "   X "   Y "•  4
  13. 13. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23line line(100, 100, 200, 200);
  14. 14. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23• size( , );"•  "  size(400, 400);"  size(800, 600);"  size(1900, 1200);
  15. 15. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23
  16. 16. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23• point "• line "• ellipse "• rect
  17. 17. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23Processing• RGB "  colorMode(RGB, 100, 100, 100, 100);"   "• HSB "  colorMode(HSB, 360, 100, 100, 100);"   "
  18. 18. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23
  19. 19. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23• colorMode "• fill "• stroke "• noFill "• noStroke "• background
  20. 20. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23• smooth "• strokeWeight
  21. 21. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23
  22. 22. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23 "
  23. 23. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23
  24. 24. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23
  25. 25. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23•  "   "   "•  "   "   "
  26. 26. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23•  "•  "   1, 2, 100, -1, -40"   1.1, 175.2, 3.141592"   "  
  27. 27. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23•  "•  line "• 
  28. 28. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23int opacity;
  29. 29. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23•  "   "   "•  "•  "   aaa, foo, a10"  × 12345, 1_a
  30. 30. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23•  "• E.g. "•  "   "   "
  31. 31. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23Java int -1, 0, 1, 100, 10000 float 1.0, -0.91, 3.141567474 char A, b, c, d String Abcdefg, boolean true, false
  32. 32. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23opacity = 50;
  33. 33. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23int opacity = 50;"
  34. 34. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23
  35. 35. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23
  36. 36. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23
  37. 37. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23
  38. 38. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/2310
  39. 39. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23 10s = random(0, 100);"x = random(s, 400 – s);"y = random(s, 400 – s);"ellipse(x, y, s, s);
  40. 40. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23
  41. 41. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23
  42. 42. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23while while( ){" " " }"
  43. 43. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23while 10int i = 0;"while(i < 10){" s = random(0, 100);" x = random(s, 400 – s);" y = random(s, 400 – s);" ellipse(x, y, s, s);" i = i + 1;"}
  44. 44. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23• == "• != "• < "• > "• <= "• >= "
  45. 45. N. Shimizu (chiko@sfc.keio.ac.jp / @chikoski) 2011/06/23•  400x400"•  "•  100 "•  "• 

×