Prathamesh Borgharakar Homework 1B Starter 1
Be sure to change the title and author of this fiddle to match the assignment requirements!
by Prathameshsb
HTML
<div id="container">
<b>Assignment Number 1 - A4.</b><br><br>
<div id="drawing"></div><br>
Made by <b>Prathamesh Sunil Borgharkar.</b>
</div>
CSS
#container{
position: relative;
text-align: center;
}
JavaScript
"use strict"
let draw = SVG('drawing')
draw.size(600,400);
//Grid box
let box = draw.rect(600,400).fill("none").stroke("#FF4828").stroke({width: 3})
//Roof Top
let roof = draw.polygon("300,5 550,750,75").fill('#FF4040').stroke(5).stroke({width:2}); //red color
//rest of the building box layout
let buildingBox1 = draw.rect(250,285).x(50).y(75).fill('#A1A1D1').stroke('#000').stroke({ width: 2}); // light blue color
let buildingBox2 = draw.rect(250,285).x(300).y(75).fill('#7373D1').stroke('#000').stroke({ width: 2}); //darker blue color
/*Windows*/
//Window number 1
let win1 = draw.circle(70).fill('#BEBEBE').stroke('#000').stroke({width: 2}).cx(150).cy(125);//light grey color
let win1InnerCircle = draw.circle(60).fill('#BFFFFF').stroke('#000').stroke({width: 2}).cx(150).cy(125);//lightest blue color
let win1HorizontalLine = draw.line("0,0 0,60").stroke({width: 2}).cx(150).cy(125);
let win1VerticalLine = draw.line("0,0 60,0").stroke({width: 2}).cx(150).cy(125);
//Window number 2
let win2 = draw.circle(100).fill('#BEBEBE').stroke('#000').stroke({width: 2}).cx(300).cy(190);//light grey color
let win2InnerCircle = draw.circle(90).fill('#BFFFFF').stroke('#000').stroke({width: 2}).cx(300).cy(190);//lightest blue color
let win2HorizontalLine = draw.line("0,0 0,90").stroke({width: 2}).cx(300).cy(190);
let win2VerticalLine = draw.line("0,0 90,0").stroke({width: 2}).cx(300).cy(190);
//Window number 3
let win3 = draw.rect(150,150).fill('#BDFBFB').x(375).y(190).stroke('#000').stroke({width: 2});//lightest blue color
let win3HorizontalLine_1 = draw.line("0,0 0,150").stroke({width: 2}).x(425).y(190);
let win3VerticalLine_1 = draw.line("0,0 150,0").stroke({width: 2}).x(375).y(240);
let win3HorizontalLine_2 = draw.line("0,0 0,150").stroke({width: 2}).x(475).y(190);
let win3VerticalLine_2 = draw.line("0,0 150,0").stroke({width: 2}).x(375).y(290);
/*Door and the handle*/
//Door
let door=...