A program draw a rectangle on the screen

Assignment Help Computer Graphics
Reference no: EM132106370

You have a program draw a rectangle on the screen and allow the user to change the color/size of the rectangle. The program will store in the browser the settings of the color/size so that upon revisiting the page, the values are restored.

Set the dimensions of the canvas to 800x600

Have 3 (or more) colors available to draw a rectangle.

Draw a rectangle in the center of the screen the size100x50 pixels.

The user can press the arrow keys to change the shape of the rectangle, keeping the rectangle at the center of the screen.

After each change, save the settings of the dimensions/color to the browser's localStorage

When the user closes (or revisits the page), the rectangle and colors should be the same choice and size as the way the user last left it.

Offer a reset button, to reset the program to the default colors/size.

Make sure you user interface reflects what is drawn on the screen (this is importance when setting the values from the localStorage).

Using HTML, CSS, or Javascript

 

Reference no: EM132106370

Questions Cloud

Thoughts on the view held by many scientists : What are your thoughts on the view held by many scientists that our feelings, emotions, and even a sense of our spirituality are linked to chemicals in our brai
Develop a windows application that will allow user to play : Develop a C# windows application that will allow a user to play an animal simulation game.
Think in terms of personality : Although two people are both 65, why would one seem much older than the other? Think in terms of personality, physical development/genetics, environment, etc.
Piece of getting through a degree program : Self-care is a vital piece of getting through a degree program. Share what sort of self-care plan you have in place, if any.
A program draw a rectangle on the screen : You have a program draw a rectangle on the screen and allow the user to change the color/size of the rectangle.
Qualitative methods of describing a type of behavior : Please compare quantitative and qualitative methods of describing a type of behavior.
How does pc change after executing a 16-bit instruction : How does PC change after executing a 16-bit instruction? An arithmetic and logic unit (ALU) performs integer and logic operations.
When solving for anova can f have a negative value : When solving for ANOVA, can F have a negative value? Can SS have a negative value?
Create an array of structures containing structure members : Create an array of structures containing the structure members as defined .The program needs to be able to handle data for up to 500 books.

Reviews

Write a Review

Computer Graphics Questions & Answers

  Task in this lab you will develop the following image

task in this lab you will develop the following image manipulations that can be performed on a user-specified image.

  One of the most primary search engines on the internet

One of the most primary search engines on the internet (also, Bing, Opera, Chrome, etc.)

  Choose one of the organisations and examine their

choose one of the organisations and examine their commercial practices in light of ethical behavioural theory you have

  Computer graphics please help me sir i am giving a question

please help me sir i am giving a question to youshow that the multiplication of two successive scaling is

  Determine the avant garde movements you will be referencing

Determine the avant garde movements (3) you will be referencing. Research their characteristics and visual representation. Work outside the computer first quickly brainstorming visual solutions for each composition.

  Reflect on cbs eye logo within context of corporate design

Reflecting on the CBS eye logo within the context of corporate design, Dennis Doordan quotes designer Paul Rand: "Symbols are a duality. They take on meanings from causes-good and bad.

  Write program to animate two circles bouncing around window

Write a program to animate two circles bouncing around a window. The basic idea is to start the two circles somewhere in the interior of the window.

  Modify the inventory program by adding a button to the gui

Modify the Inventory Program by adding a button to the GUI that allows the user to move to the first item, the previous item, the next item, and the last item in the inventory

  1 imagine you are kazuo hirai head of sony computer

1. imagine you are kazuo hirai head of sony computer entertainment inc. from your perspective how attractive does the

  Incorporates text as an integral part of the image

use illustrator to draw, focus on typography to create an illustration that incorporates text as an integral part of the image or image shape

  Many variations on the keyboard and touch-screen

There are many variations on the keyboard and touch-screen that allow people with various disabilities to operate a computer. Features may include: bigger keys, specialised layouts for different purposes, braille overlays and brighter colours for con..

  Add any filter effects that you determine are necessary

Add a type layer that says Flying Star Cafe. You can use any color and any font available on your computer. In the sample, a Poor Richard font is shown

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd