Please written by computer source Can someone turn this into a proper functioning code for JavaScript on visual studio code. (Include numbers and everything so i can put it into the JavaScript page right away please) function setup() { createCanvas(400, 400); x = width / 2; y = height / 2; } function draw() { background(200); fill(255, 0, 0); stroke(0); strokeWeight(4); ellipse(x, y, 50, 50); rect(x - 25, y - 25, 50, 50); triangle(x, y - 25, x - 25, y + 25, x + 25, y + 25); line(x - 25, y, x + 25, y); arc(x, y, 50, 50, 0, PI); }
Please written by computer source Can someone turn this into a proper functioning code for JavaScript on visual studio code. (Include numbers and everything so i can put it into the JavaScript page right away please) function setup() { createCanvas(400, 400); x = width / 2; y = height / 2; } function draw() { background(200); fill(255, 0, 0); stroke(0); strokeWeight(4); ellipse(x, y, 50, 50); rect(x - 25, y - 25, 50, 50); triangle(x, y - 25, x - 25, y + 25, x + 25, y + 25); line(x - 25, y, x + 25, y); arc(x, y, 50, 50, 0, PI); }
Chapter14: Introduction To Swing Components
Section: Chapter Questions
Problem 9RQ
Related questions
Question
Please written by computer source
Can someone turn this into a proper functioning code for JavaScript on visual studio code. (Include numbers and everything so i can put it into the JavaScript page right away please)
function setup() {
createCanvas(400, 400);
x = width / 2;
y = height / 2;
}
function draw() {
background(200);
fill(255, 0, 0);
stroke(0);
strokeWeight(4);
ellipse(x, y, 50, 50);
rect(x - 25, y - 25, 50, 50);
triangle(x, y - 25, x - 25, y + 25, x + 25, y + 25);
line(x - 25, y, x + 25, y);
arc(x, y, 50, 50, 0, PI);
}
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781305480537/9781305480537_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781305480537/9781305480537_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT