Guest User

Untitled

a guest
Oct 13th, 2015
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. /*
  2. TheNaiveHouseProject or one way of working together with code.
  3. 1: Decide one person in the group that is responsible for putting it all together and that is in charge of the master fork:
  4. 2: Let that person fork my master branch (this)
  5. 3: Fork the coordinators code.(Your fork will the be listed in the coordinators repo).
  6. 4: Divide the methods between you and only work in the method you are assigned.
  7. 5: Copy the code from your own fork to your Processing program (Press RAW and copy).
  8. 6: Work with your code and when you are ready use EDIT to paste in your code so it gets updated in your own fork.
  9. 7: Tell the coordinator that you want to include your code and he/she can find it in the forks in the repo and copy the method to the master fork.
  10. 8: Repeat the procededure from 6: until you are satisfied with your method (If there are changes that you want in your fork you can copy the master or delete your fork and make a new).
  11. 9: If you need to change the overall code decide together and let the coordinator change in his/hers code.
  12. It is a good idea to update the code in the master fork several times
  13. !!!!AND, In this excersise you are not allowed to use antything that has not been thaught during this P1 course.
  14. So variables, shapes, colors and methods.
  15. */
  16. //Variable declarations for variables that will be used in the entire sketch.
  17. PFont myFont; //You havn't seen this before it is processings way of writing text here we declare a variable of the type PFont.,,,,
  18.  
  19. /* Use comments like this if you want to explain
  20. things that cannot easily be understand from the code*/
  21. void setup(){
  22. size(1600,900); //Don´t change
  23. background(116,25,110);
  24. //Prepare to write a text and select font
  25. myFont = createFont("Arial", 16);
  26. //Tell processiong that we will use this font
  27. textFont(myFont);
  28. //Here the methods below gets called
  29. drawGround();
  30. drawSky();
  31. drawHouse();
  32. drawFlower();
  33. drawPerson1();
  34. drawCar();
  35. drawTree();
  36. }
  37.  
  38. //Methods that draws the different parts of the picture
  39. void drawFlower(){
  40. text("Blomma",1200,500);
  41. fill(255, 255, 0);
  42. ellipse(1200, 500, 50, 50);
  43. }
  44.  
  45. void drawHouse(){
  46. text("Hus",1200,500);
  47. }
  48.  
  49. void drawCar(){
  50. text("Bil",1100,700);
  51. }
  52.  
  53. void drawSky(){
  54. text("Himmel med moln o sol", 400,200);
  55. }
  56.  
  57. void drawGround(){
  58. text("Mark med en väg för bilen", 400,600);
  59. }
  60.  
  61. void drawPerson1(){
  62. text("Person som bor i huset", 1200,700);
  63. }
  64.  
  65. void drawTree(){
  66. text("Träd", 100,700);
  67. }
Add Comment
Please, Sign In to add comment