Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am working with HTML canvas for what I am doing and I understand how to draw, but a couple requirements elude me. I understand

I am working with HTML canvas for what I am doing and I understand how to draw, but a couple requirements elude me.

I understand how to code the html for buttons and lists, but not how to connect them properly to the javascript ( which is the part I need the most help with)

I need An HTML dropdown list with at least five background color choices where the dropdown list is populated from an array of web color name stringsI have to use Javascript to populate the dropdown. I also need to make sure that the background color will change as soon as the dropdown is changed.

An HTML input text field( which I understand how to set up but not the way to connect it to the canvas), An HTML button to display the entered text somewhere on the Canvas, HTML button to clear the Canvas

For Javascript I need to do this, which is the part I'm most concerned about:

I also need to Populate a dropdown list from an array of color names

An event handler each to change the background color, and redraw all Canvas objects , draw user-entered text somewhere on the Canvas, to completely clear the Canvas to the current background color

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions

Question

Compare warehouse receipts and bills of lading as to negotiability.

Answered: 1 week ago