GithubHelp home page GithubHelp logo

ce_os_ex3_grid's Introduction

Introduction

We’re not trying to be greedy, but we’re going to ask you to code quite a big thing. This, will probably take your Windows API skills to the next level. We are going to create a grid!

Grid

As basic as it sounds, and a bit like the image shows - you’re asked to create a program that displays an active grid, the grid could be either a red, green, or blue grid. By active - it means that items on the grid will change their color intensity randomly, in 3 different modes:

  • Fade in - Item intensity grows from darkest to brightest in animation
  • Fade out - Opposite of fade in, until black (off)
  • On/Off - directly from off (black) to on (full intensity) [Modes should be activated in turns, randomly, per-item.]

The grid items can be drawn as rectangles, circles, or whatever you choose, make sure they are all in the same size, positioned symmetrically and with proper margins between each. The color mode is changed with the user hitting the spacebar. For instance, if the current color is red and user hits spacebar, color changes to green, another hit - changes to blue, then back to red, and so on.. The size of the window created should be fixed, while the dimensions of the grid should be dynamic (received as parameters from the user - items count as width, items count as height). Therefore scrollbars will be necessary.

Remarks

  • Only WinAPI is allowed, no external UI libraries accepted.
  • As mentioned above, the user supplies the grid dimensions.
  • Write your program in steps, divide your work so you see progress.

Your Submission

Please submit the necessary code files

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.