HTML and CSS Reference
In-Depth Information
To allow you to experiment, we've created a <select> element with all of the possible
modes in listing 8.15 . The composition operations split the world into two segments:
• Destination, what's already drawn
• Source, the new stuff you're trying to draw
Add the code from the following listing (place it after the <menu> element you added in
listing 8.11 ) .
Listing 8.15. index.html— <select> element for composition mode
Now, so that your application can respond to changes, you need to bind the <select>
element to an event handler. The next listing has code that replaces your existing draw()
function.
 
Search WWH ::




Custom Search