Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- TheNaiveHouseProject or one way of working together with code.
- 1: Decide one person in the group that is responsible for putting it all together and that is in charge of the master fork:
- 2: Let that person fork my master branch (this)
- 3: Fork the coordinators code.(Your fork will the be listed in the coordinators repo).
- 4: Divide the methods between you and only work in the method you are assigned.
- 5: Copy the code from your own fork to your Processing program (Press RAW and copy).
- 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.
- 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.
- 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).
- 9: If you need to change the overall code decide together and let the coordinator change in his/hers code.
- It is a good idea to update the code in the master fork several times
- !!!!AND, In this excersise you are not allowed to use antything that has not been thaught during this P1 course.
- So variables, shapes, colors and methods.
- */
- //Variable declarations for variables that will be used in the entire sketch.
- PFont myFont; //You havn't seen this before it is processings way of writing text here we declare a variable of the type PFont.,,,,
- /* Use comments like this if you want to explain
- things that cannot easily be understand from the code*/
- void setup(){
- size(1600,900); //Don´t change
- background(116,25,110);
- //Prepare to write a text and select font
- myFont = createFont("Arial", 16);
- //Tell processiong that we will use this font
- textFont(myFont);
- //Here the methods below gets called
- drawGround();
- drawSky();
- drawHouse();
- drawFlower();
- drawPerson1();
- drawCar();
- drawTree();
- }
- //Methods that draws the different parts of the picture
- void drawFlower(){
- text("Blomma",1200,500);
- fill(255, 255, 0);
- ellipse(1200, 500, 50, 50);
- }
- void drawHouse(){
- text("Hus",1200,500);
- }
- void drawCar(){
- text("Bil",1100,700);
- }
- void drawSky(){
- text("Himmel med moln o sol", 400,200);
- }
- void drawGround(){
- text("Mark med en väg för bilen", 400,600);
- }
- void drawPerson1(){
- text("Person som bor i huset", 1200,700);
- }
- void drawTree(){
- text("Träd", 100,700);
- }
Add Comment
Please, Sign In to add comment