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

  Create a simple warm-up program using your g3d

Create a simple warm-up program using your G3D programming and graphics environment.

  Shadow effect while rolling a sphere

Shadow effect while rolling a sphere as well as the options of shading and lighting.

  Relative positioning and interactive positioning

Relative Positioning and Interactive Positioning by Dragging and Clicking and some Simple Animation

  Draw a teapot at the global origin

Draw a teapot at the global origin

  Concepts of computer graphics

Concepts of Computer Graphics and develop a program using OpenGL

  The security policy document outline

Using the GDI Case Study below, complete the Security Policy Document Outline

  Develop the image manipulations

Develop the image manipulations

  What does resolution mean

What does resolution mean How is resolution connected to ppi and dpi units

  Differentiate between a bitmap image and a vector image

Differentiate between a bitmap image and a vector image Explain the following terms

  Essential elements of a design pattern

configuration of an Iterator pattern, patterns could be used in a Library System, Singleton, Template, Decorator, Façade,What does Alexander means by the following declaration "But it is impossible to form anything which has the temperament of natu..

  Framework of user interface design

design of user interfaces, natural mapping, GUI applications, web page design different to designing for printed media, risks exposed in this "phone as individual proxy" approach, interaction designers of ubicomp applications, Storyboards are usual..

  What are the factors affecting picture composition

Define picture composition What are the factors affecting picture composition. Elaborate on each factor Describe the basic lines present in a composition

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